- Home /
play-games-plugin: Loadscores ignore leaderboard's range settings
Hello, everyone
I have a problem with GooglePlay leaderboards, using play-games-plugin-for-unity. I try to get five scores, where user score will be in the middle of list:
TopPlayer1 1000
TopPlayer2 900
USER 800
BottomPlayer1 700
BottomPlayer2 600
I've tried it in this way:
ILeaderboard lb = PlayGamesPlatform.Instance.CreateLeaderboard();
lb.id = leaderboardID;
lb.timeScope = TimeScope.AllTime;
var startPos = (PlayerCurrentPosition > 3) ? PlayerCurrentPosition - 2 : 1;
lb.range = new Range(startPos, 5); // <--- SET RANGE
lb.LoadScores(ok =>
{
if (ok)
LoadUsersAndDisplay(lb);
});
But everytime I get five results started from player current position and below, totally ignored range settings.
Answer by CanNguyen · Jul 22, 2018 at 10:57 PM
So I'm not 100% sure, but try modifying the range value within the LoadScores function. For some attributes you'll need to wait for the event to finish to actually modify them.
Your answer
![](https://koobas.hobune.stream/wayback/20220612092333im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Leaderboards and achievements not working -- Google Play Services 0 Answers
Google play services leaderboards 1 Answer
Google play services leaderboard not showing any scores 2 Answers
google play service problem with a game published in alpha mode 0 Answers
Google Play Games Services not showing achievements list and leaderboards even in Play Games app 1 Answer