question

ene avatar image
ene asked

Display Name

Is there a way to limit DisplayName to something like 8 characters only ?

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

·
Hernando avatar image
Hernando answered

No, for now. PlayFab does not have the Server API can update the player's DisplayName.(refer to this thread: https://community.playfab.com/questions/9129/change-user-display-name-via-server-api-cloud-scri.html )So, there is not a perfectly safe way to update DisplayName with checks.

You can do early-out checks on the input parameters before calling UpdateUserTitleDisplayName in the client. But players can bypass the client you released and send an API request to PlayFab via HTTP Request tool like Postman. So, as a remedy, I would have to advise listening to the player_displayname_changedevent by creating a new rule in GameManager and executing a CloudScript as an action to find out those players who send a request that has not passed the early-out check.

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.