LoadScores only returning 10 rows

For some reason when I pull scores it only returns 10 score max.

All of my leaderboards are live.

I use the same basic code that you see on all the forums to scroll through the leaderboard entries.

ILeaderboard flipcoinsLB = Social.CreateLeaderboard();
flipcoinsLB.id = “FlipCoins”;
flipcoinsLB.LoadScores(flipcoinsscores => {
foreach (IScore score in flipcoinsLB.scores) {
if (Social.localUser.id == score.userID) {
GlobalScript.flipCoins = (int)score.value;
}
}
});

There are about 26 unique entries in the list. When I pull up the leaderboard you can see that there are well more that 10 unique entries.

1 Like

This happens for all the leaderboards I have created. Is there a way to just pull the current user’s leaderboard entries?

SetUserFilter was a workaround.

It still doesn’t explain why I was only getting 10 scores.

For Anyone who still has the same problem. In the new Unity leaderboard system,
LeaderboardsService.Instance.GetScoresAsync(leaderboardId) only returns 10 entries by default. To get more you must use GetScoresOptions(). For example:

var scoresResponse = await LeaderboardsService.Instance.GetScoresAsync(leaderboardId, new GetScoresOptions() { Limit = 100 });