Read scores and ranks from the leaderboard

I need to read data from the leaderboard like score, rank, maybe the username. Currently its just possible to display the leaderboard and to save user score.
I need this feature, because I want to highlight the score of other users in my game. I also want to have some kind of “ghost” for the best score of the logged in user.

It would be great if the leaderboard data is accessible as an array/map variable or at least via javascript.
e.g. leaderboard.getScores(…) : []


I also need to be able to read the score of the first in the ranking and insert it into a variable.
I’m referring to the ranking function described here

1 Like