Very late response to the thread, but you can get this information through the UEnum field object.
UEnum* UMyFunctionLibrary::GetEnumFieldObject(const FString& enumName)
{
[INDENT=2]return FindObject<UEnum>(ANY_PACKAGE, *enumName);[/INDENT]
}
Example Usage:
UEnum* enumObj = UMyFunctionLibrary::GetEnumFieldObject(“EGetWorldErrorMode”);
int64 maxVal = enumObj->GetMaxEnumValue();
You can also use this for other things, such as to convert the current value of an enum into its string representation:
EGetWorldErrorMode errorMode = EGetWorldErrorMode::Assert;
FString enumString = enumObj->GetNameStringByIndex((uint32)errorMode);
Hope that helps anyone viewing this in the future!