Hello. I’m trying to create an enumeration. I use this code
UENUM()
namespace ESomeEnum
{
enum Type
{
TestTest
};
}
But I’m getting a runtime error:
This problem starts in MyModule.generated.cpp - in one of the generated functions, namely
Jumping with breakpoints I found that my enum type is not registered in UObjectHash.cpp ObjectHash, i.e. HashObject() function is not called for my object. But why?
Yeah, thanks. The trickiest part is that UENUMs work in the engine, they work in my other code. But in this particular case - in my own module - they doesn’t work.