The following code returns Object reference not set to an instance of an object at the line with the comment.
PlayFab.ClientModels.GetFriendsListRequest request = new PlayFab.ClientModels.GetFriendsListRequest(); request.IncludeFacebookFriends = true; request.IncludeSteamFriends = false; request.ProfileConstraints.ShowStatistics = true; //null reference occurs here PlayFabClientAPI.GetFriendsList(request, result => { DisplayFriends(result.Friends); }, error => Debug.LogError(error.GenerateErrorReport()));
If I exclude the line "request.ProfileConstraints.ShowStatistics = true;" the code runs without the error, however, no statistics are returned within Profile.
I have enabled Statistics in ALLOW CLIENT ACCESS TO PROFILE PROPERTIES: