Is there a way to get the country code for each of the leaderboard entries so I can show the flag in a "global" ranking alongside with the entry display name?
Is there a way to get the country code for each of the leaderboard entries so I can show the flag in a "global" ranking alongside with the entry display name?
Sure, you could use the Geo info we return as part of the player login to get the player's country, and set that as a Tag on the player account (AddPlayerTag). Then, set ShowTags to true in the ProfileConstraints when you query the leaderboard.
To be specific, I meant you would set that in a Cloud Script call, so that you can make sure you're setting only the Tags that you really want to (Tags should not be set by a client authoritative action, as players could then set any Tag they wanted to - potentially cheating your title, depending on how you use them).
2 People are following this question.