How do you print an enum value?

const FString Message = UEnum::GetValueAsString(ESomeEnum::SomeValue);

Printing can be done using the log macros, you have to put an * in front of a string variable to make that work.

UE_LOG(LogTemp, Warning, TEXT("The Actor's name is %s"), *YourActor->GetName());

Logging | Unreal Engine Community Wiki

2 Likes