Jump to content

Leaderboard user name vs. User.GetUserName()

Recommended Posts


When grabbing leaderboard entries with UserStats.DownloadLeaderboardScores(), -> UserStats.GetLeaderboardScore(i) -> data.UserName, I get a different value for my own user than when retrieving the user name with User.GetUserName().

My aim is to highlight the current user in the the leaderboard, but to do this I would need to be able to compare the user-in-leaderboard-entry with the logged-in-user. However, the User class does not give me the correct user name, and the leaderboard entry does not contain the user ID.

Is there anything I've overlooked here? Is there some way of getting the leaderboard user name from the User API, or the user id from the Leaderboard API? And why are the two names different anyway? Where can I actually SET the name used in the leaderboard?




Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...