12월, 2021의 게시물 표시

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();