UGTK cat mascotUGTKengine within an engine Request access

UGTK / Toolkit / API / Leaderboard Api System Completed

API — UGTK

Leaderboard System

Summary

The Leaderboard System displays a list of users and their scores, sorted in order.


Content


Modules Dependencies

The TextUpdaterSystem module requires the following dependencies:

Ensure that these dependencies are correctly imported and configured in your project.


Setup

To set up the Leaderboard System, follow these steps:

  1. Add the Leaderboard prefab to your scene:


How To Use

To use the Leaderboard System, utilize the following methods, called by code:

  1. Add user(s) to the leaderboard:
leaderboard.AddUsers(listOfUsers);
leaderboard.AddUser(users);
leaderboard.AddUser(nickname, score);
leaderboard.AddItem(userGameobject, entryIndex);
  1. Obtain back the list of users:
List<Mn_LeaderboardUser> users = leaderboard.GetUsers();
  1. Update the score of a user:
leaderboard.UpdateScore(nickname, score);

Testing Scene

The board also fills itself from the live server: Mn_LeaderboardDownloader.DownloadUsers() fetches the stored rows from the PHP backend and populates the list at runtime.


Technical Info

The following are the main scripts and workflow of the Leaderboard System:

Scripts:


© 2026 Marcello De Bonis. All rights reserved

Real dependenciesOpen in the map →

Measured from the repository: code references (asmdef) plus prefab and asset GUIDs. Importing this module alone brings in 17 modules in total.