question

amehr avatar image
amehr asked

PlayerProfile.DisplayName is always returning null

Hey everyone,

Im calling this line in my LoginSucess

playerNickName.text = result.InfoResultPayload.PlayerProfile.DisplayName;

Though it always returns null, is there a problem in how I'm calling it or is DisplayName currently broken or being fixed, thanks!

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

You need to define InfoRequestParameters property in the login request so that the response can contain additional information. To show the display name, please refer to Authentication - Login With Custom ID - REST API (PlayFab Client) | Microsoft Docs to define profile constraints.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.