How do I add custom metadata to UFUNCTION ? meta=(MyCustomMetdata) ?

So I want to cache off some function within TMap, for quicker lookups. But I need some way to filter out functions, that I don’t need.

I guess best way to do it, would be to add some custom meta data flag, into UFUNCTION(meta=()).
But How do I do declare custom meta data ?

Metadata is just that, there is no pre-declaring it. Simply add it in to the declaration.

To check whether it is present you would need to call GetMetadata or HasMetadata on the UFunction

Thanks.

I accidently figured it out, when I had put random characters in meta=() and it complied. It was to simple :D.