Search Unity

  1. Unity 2018.3 is now released.
    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. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    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:
    55
    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:
    55
    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:
    55