Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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 ?
    https://github.com/iniside/ActionRPGGame - Action RPG Starter kit. Work in Progress. You can use it in whatever way you wish.

    #2
    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

    Comment


      #3
      Originally posted by Marc Audy View Post
      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 .
      https://github.com/iniside/ActionRPGGame - Action RPG Starter kit. Work in Progress. You can use it in whatever way you wish.

      Comment

      Working...
      X