Dear Team,
I am developing the leaderboard that will show my rank (for example rank 110) and top 10 highest score players.
As the question, how do I can get my rank in the Leader Board?
I tried to use GetLeaderboardAroundPlayer(), with my Playfab ID as below:
public void GetLeaderBoardRank(string playfabID, Action<GetLeaderboardAroundPlayerResult> successCallback) { var request = new GetLeaderboardAroundPlayerRequest() { StatisticName = "Score_Data", PlayFabId = playfabID, // This is my Playfab ID }; PlayFabClientAPI.GetLeaderboardAroundPlayer(request, successCallback, errorCallbackReadLeaderBoard); }
But I see that the result is the list of Leaderboard, it is not only my rank (rank 110). So could you tell me how to get only my rank in the Leaderboard?
Thank you so much.