UE_LOG, unable to print an FName from FAnimMontageInstance

You’d write an FName to a log like so:

FName MyName;
UE_LOG(LogTemp, Warning, TEXT("My Name: %s"), *MyName.ToString());

Please note that you need to use %s for printing out a string of characters, rather than %f which you’re using in your example above. http://www.cplusplus.com/reference/cstdio/printf/

11 Likes