Is there a way to limit DisplayName to something like 8 characters only ?
Is there a way to limit DisplayName to something like 8 characters only ?
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.
2 People are following this question.