Announcement

Collapse
No announcement yet.

Add only header (no ccp) for UEnums

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

    Add only header (no ccp) for UEnums

    How can one add a header to be used simply for UEnums?

    If we add it through the editor, both ccp and .h are created, we have to do it through the editor to get the .generated file. However, if I then delete the .ccp, the whole thing doesn't compile.

    I need them separately as we can't forward declare enums...

    #2
    I think if you want this header file just for UEnums, you dont need .generated in it, just create it yourself.
    Contacts: Twitter

    Comment


      #3
      Thanks for the reply!

      Well, since I want them to be used in UE's reflection system (hence, to be UENUM() declarable), it is required for it to be UHT included.

      Take a look at: https://github.com/EpicGames/UnrealT...ic/LeapEnums.h

      They do exactly what I need, its just I'm not sure how they're doing it.

      Comment

      Working...
      X