How do I cast an FString to TCHAR array?

Hi sick. I was able to get this to compile without any errors by using the following:

UE_LOG(LogActor, Error, TEXT("%s"), *ClassName);

Are you still getting an error message when you use that syntax?

EDIT You might also take a look here for details on outputting strings to logs.

3 Likes