i am trying to show off the available Blendmodes inside the editor and trying that like UE describing it in their Coding Standards.
(I am using UE 4.5)
in myFile.h outside UCLASS
Hello there! Not 100% sure if this is the issue, but I think you are defining your enum incorrectly. I suggest setting it up like this tutorial on the wiki A new, community-hosted Unreal Engine Wiki - Announcements and Releases - Unreal Engine Forums. Notice how you define the enum inside a namespace and define the enum with name “Type”. I think this is how UE4 expects you to define enums, again I am not 100% sure, but it is worth a shot trying that out as it is what I use and it does work!
Enum class support is actually a very recent addition to the engine and not more or less “correct” than a plain old enum.
I’d look at the SE_BLEND_RGBA_MASK_END = SE_BLEND_RGBA_MASK_START + 31, assignment. The header tool is picky about how you use enums and is probably choking on the backreference. If you want to bitwise operations using an enum, you should avoid making it an UEnum. Plus, you probably don’t want those values showing up in an editor drop down menu for that enum.
Special thanks to your answer. Well i think the case may be this enum is just not ready for UENUM() since SceneTypes.h is from Epic, i did no modifications there, but they do not set up the UENUM() for that. So
i believe i could try as hard as i can, but wont get no results
“Enum classes are supported by all compilers and encouraged as a replacement for old-style namespaced enums, both for regular enums and UENUMs.”
Besides same functionality, I would opt for the recommendations of any API provider.
And from a personal point of view I don’t like to use namespaces for something thats not intended (I know the safe_enum idiom and fellows, but strong enums are here to overcome ancient limitations and workarounds).
enum class also has a significant advantage in that they can be forward-declared which can get you out of some include dependency problems, and improve compile time. They are also just a bit less typing to use.