ios – Is it still possible to obtain the user’s rank from the Apple Game Center leaderboards?

I have some doubts about the Apple Game Center leaderboards.

I noticed that the rank variable has been deprecated.
Is there an alternative method to get the player’s rank in a given leaderboard?

In the Unity plugin documentation I noticed that, when loading the entries of a leaderboard, it is possible to specify their scope (e.g. rank min = 1 and rank max = 100).


var playerScope = GKLeaderboard.PlayerScope.Global;
var timeScope = GKLeaderboard.TimeScope.AllTime;
var rankMin = 1;
var rankMax = 100;

var scores = await leaderboard.LoadEntries(playerScope, timeScope, rankMin, rankMax);

But if I wanted to put a maximum reach as long as the list of users on the leaderboard, how could I get that value?

Latest articles


Related articles

Leave a reply

Please enter your comment!
Please enter your name here