On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

Awesome tool thank you!

To all, if you want to single out a certain user in the leaderboard (the one using it), this is how I do it :

  private void OnLeaderboardLoaded(Entry[] entries)

        {

            foreach (var entryField in _entryFields)

            {

                entryField.text = "";

            }

            for (int i = 0; i < entries.Length; i++)

            {

                _entryFields[i].text = $"{i + 1}. {entries[i].Username} : {entries[i].Score}";

                if (entries[i].Username == SavedUsername)

                {

                    _entryFields[i].text = $"{i + 1}. {entries[i].Username} : {entries[i].Score}" + " (You)"; //Tell player which score is his

                    _entryFields[i].color = new Color32(255, 0, 0, 200); //Make userscore red to stand out

                }

            }

        }

Alternatively, instead of comparing usernames you can just put entries[i].IsMine() in the condition.

Thats handy!

Is there a way to clamp the players score to the bottom of the screen?

Of course. You'd just have to find the player's score by using the .IsMine() method and display the properties of the player's score at the bottom.