I want to create detailed leaderboard for our game. I thought i can get Player's json data who in top 10 in leaderboard. I've getted Player's playfab id who in top 10. But i cant reach Player's json data using playfabid.
In example,
PlayFabClientAPI.GetUserData(new GetUserDataRequest()
{ PlayFabId = "988BC628E808FC95",
Keys=null },
OnGetDataSuccess, OnError);
}
void OnGetDataSuccess(GetUserDataResult result)
{ if (result.Data ==null || !result.Data.ContainsKey("AllFlags"))
{ Debug.Log("There is no data"); }
else { Debug.Log("There is a data"); } }
Console Message : There is no data
,I want to create detailed leaderboard for our game. I thought i can get Player's json data who in top 10 in leaderboard. I've getted Player's playfab id who in top 10. But i cant reach Player's json data using playfabid.
In example,
PlayFabClientAPI.GetUserData(new GetUserDataRequest()
{ PlayFabId = "988BC628E808FC95",
Keys=null },
OnGetDataSuccess, OnError);
}
private void OnGetDataSuccess(GetUserDataResult result)
{ if (result.Data ==null || !result.Data.ContainsKey("AllFlags"))
{ Debug.Log("There is no data"); }
else { Debug.Log("There is a data"); } }
Console Message : There is no data