UE4 - String To Enum
FText GetNetRoleEnumAsString(ENetRole::Type EnumValue) { const UEnum* EnumPtr = FindObject<UEnum>(ANY_PACKAGE, TEXT("ENetRole"), true); if(!EnumPtr) return NSLOCTEXT("Invalid","Invalid","Invalid"); return EnumPtr->GetDisplayNameText(EnumValue); } return FString : return EnumPtr->GetDisplayNameText(EnumValue).ToString();