How to get the display name of a player?

Actually, you can display the username of a player shortly, with the logs showing on screen during UEFN Sessions (under the EDIT MODE UI top left)

If you open the actual LOG, the names will display as Anonymous[xxx], so you have to be quick to take a look at it.

GetAgentName<localizes>(Agent:agent)<computes>: message = "{Agent}"

PrintPlayerName(Agent:agent):void=
    Username : message = GetAgentName(Agent)
    Print(Username)

This is the only way I have gotten it to work, I haven’t really played around with it much (e.g. UI etc.)

7 Likes