Forum Multiplayer Leaderboard Callback - Please Help I am lost!

Discussion and help relating to the PlayerIO Multiplayer API.

Leaderboard Callback - Please Help I am lost!

Postby VRchess » April 11th, 2021, 8:56 pm

Hello! I have been using Playerio for Unity multiplayer games in my classroom successfully for the past several years. I have been trying to implement the new Leaderboard element into my games, but I am completely lost when it comes to writing the Callback that will take the data I pull from the leaderboard and put it into any useful form such as a generic list or even an array.
I ran into this brick wall when I tried to use Leaderboards.GetTop()
I got as far as player.Leaderboards.GetTop("scores", null, 0, 10, null,null);
How do I get that last null(Callback Success) to output the data I am asking for to either a generic list(preferrable) or an array?
I have been searching endlessly for examples to work from but I can't find anything. Thanks!
VRchess
 
Posts: 1
Joined: April 10th, 2021, 9:34 pm

Return to Multiplayer