When using C# PlayFabAllSDK in Unity.
In the PlayPep title, "DisplayName" exists,
but "InfoResultPayload.PlayerProfile.DisplayName" returns "null".
Why is that?
When using C# PlayFabAllSDK in Unity.
In the PlayPep title, "DisplayName" exists,
but "InfoResultPayload.PlayerProfile.DisplayName" returns "null".
Why is that?
I am not able to see your request, but if the result only contains null, it can be cause by missing defined property in the request. In Authentication - Login With Custom ID API, you need to define InfoRequestParameters property in the request. For example,
var request = new LoginWithCustomIDRequest { CustomId = "GettingStartedGuide", CreateAccount = true, InfoRequestParameters = new GetPlayerCombinedInfoRequestParams { GetPlayerProfile = true } };
So that you may get player’s profile information via apiResult.InfoResultPayload.PlayerProfile
2 People are following this question.