Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

LoadScores only returning 10 rows

Discussion in 'iOS and tvOS' started by alphadogware, May 18, 2018.

  1. alphadogware

    alphadogware

    Joined:
    Nov 15, 2017
    Posts:
    24
    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.
     
  2. alphadogware

    alphadogware

    Joined:
    Nov 15, 2017
    Posts:
    24
    This happens for all the leaderboards I have created. Is there a way to just pull the current user's leaderboard entries?
     
  3. alphadogware

    alphadogware

    Joined:
    Nov 15, 2017
    Posts:
    24