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…

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

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/UnrealTournament/blob/89f90b867d79b039■■■505cdb0925709cdce763c/Engine/Plugins/Runtime/LeapMotion/Source/LeapMotion/Public/LeapEnums.h

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