which is not very helpfull. If I substiute the Enum Value with an integer literal for example it works. Does that mean that enums are not suppoerted in the meta data of a property? If so, is there a workaround, or will I just have to use some defines maybe to get a literal value in there?
I’m looking forward to your help!
EDIT:
And it gets better. Defines don’t work either (maybe a macro in a macro causes problems?) It does compile but, when I use
it2->GetINTMetaData("Unit")
It just returns 0. I am now at the stage, where I put in integer literals, which defeats the whole point of enumerations. There has to be a better way.
Out of curiosity, have you tried using removing the “class” modifier from your enum (thus making it effectively just an int in disguise)? Enum Classes are a C++11 thing that enforce type safety so I could see that causing issues.
Out of curiosity, have you tried using removing the “class” modifier from your enum (thus making it effectively just an int in disguise)? Enum Classes are a C++11 thing that enforce type safety so I could see that causing issues.