Good morning, I have a “DisplayName” GameObject and has a child of “UserDisplayName” InputField. Im trying to create a new nickname for new user login. This is the error i got
Here is my code.
public InputField UserDisplayName;
public void OnUpdatePlayerName()
{
PlayFabClientAPI.UpdateUserTitleDisplayName(new UpdateUserTitleDisplayNameRequest
{
DisplayName = UserDisplayName.text
}, result =>
{
DisplayNamePanel.SetActive(false);
GameStartPanel.SetActive(true);
Debug.Log("The player's display name is now: " + result.DisplayName);
}, error => Debug.LogError(error.GenerateErrorReport()));
}