Hi, Folks. I'm trying to set the displayname default value directly from the API, the debug log correctly informs the username. But when I believe that it should fill the textfield it generates an error, could someone guide me to implement this function it would be very important for me I've been trying since yesterday, but without success. Any help is welcome, thanks in advance.
Console error image --->
#region DisplayName public void PlayerData(string playFabId) { PlayFabClientAPI.GetPlayerProfile(new GetPlayerProfileRequest() { PlayFabId = playFabId, ProfileConstraints = new PlayerProfileViewConstraints() { ShowDisplayName = true } }, (result) => { Debug.Log("The player's DisplayName profile data is: " + result.PlayerProfile.DisplayName); playerNameText.text = result.PlayerProfile.DisplayName; }, (error) => { Debug.LogError(error.GenerateErrorReport()); }); } #endregion DisplayName