Weird Symbols in my ouput log

Hey there, I got a quick question, I want to print out the owner by using this line of code:

UE_LOG(LogTemp, Warning, TEXT("The actor that just fired is: %s"), GetOwner());

However this is the result:

Can anyone help me out with whats wrong? I can provide more code if necessary ofcourse!

GetOwner() returns the pointer to the actor, not the name. It is not a string. Change it to GetOwner()->GetName()

Thanks Munsa that seemed to have fixed it!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms