Unreal - Enums
- Never use unscoped enums, as values can clash with predefined eums
- Use
enum class / enum struct
instead: - I have had a warning that scroped classes only support
uint8
- Use
|
|
UEnum::GetValueAsString(value);
- Returns an FString, so when logging make sure to dereference!
UE_LOG(LogCat, LogType, TEXT("This is enum %s"), *UEnum::GetValueAsName(value).ToString())