Jump to content
 
Five Mind Creations UG (haftungsbeschränkt)

Leaderboard user name vs. User.GetUserName()

Recommended Posts

Hi,

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?

Thanks,

Philip

@Corvus

Share this post


Link to post
Share on other sites

Please sign in to comment

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

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...