How to get users around the specified user in leaderbord

0 votes
asked Jun 13, 2018 in Unity by gb_zend (11 points)

1 Answer

+1 vote


There are two different ways to achieve this:

1. If you know the rank of the user: In this case, you can call getTopNRankers API where you can play with offset and max parameters to get the users around any particular rank. For example, if the rank of a user is X and you want to know users aroud this rank say 5 with lower rank and 5 with higher rank. You just have to set offset as X-5 and Max as X+5.

2. If you know the score of the user: You know the score of the user, you can decide the score range in which you want to know the users and call getUsersWithScoreRange API.

Please let me know if you have any further query, I will be happy to help you.


answered Jun 14, 2018 by rajeev.etc (1,660 points)
Thank you for your answer
In the first case
how can I set offset
I'm sorry that my English is not good
Thank You (Sepas)
To set offset, you just have to call "SetPageOffset" method using scoreboard service instance.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on