Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Leaderboard entry limits and predicting tiers

Discussion in 'Leaderboards' started by rjc, Sep 26, 2023.

  1. rjc

    rjc

    Joined:
    Oct 15, 2012
    Posts:
    5
    Hi, I'm looking to implement a feature that reports to my player "You scored among the top X% of players" after each gameplay round.

    I've configured a tiered leaderboard, which seems to be exactly what I want, but I just want to clear up some unknowns.

    If I have one leaderboard for all players and don't intent to reset it, is there a limit to how many entries that leaderboard can contain?

    Is there also a way to query the leaderboard to predit the tier for a score without adding it to the leaderboard?

    Thanks.
     
  2. EmilF_Unity

    EmilF_Unity

    Unity Technologies

    Joined:
    Jun 10, 2022
    Posts:
    16
    Hi rjc,

    There is no explicit limit to the number of entries that a leaderboard can contain.

    Regarding predicting the tier for a score, your best bet might be to query the top score for each tier starting from the lowest tier (or skip some tiers if you have a reasonable heuristic available), and then compare the new score with the top entry for each tier. You can stop querying the tiers when you've found the correct one.
     
  3. rjc

    rjc

    Joined:
    Oct 15, 2012
    Posts:
    5
    Answers my questions. Thanks!