EasyLeaderboard is a lightweight, extensible Unity package that allows you to save, display, and manage leaderboards using JSON or CSV. Perfect for games that need simple high-score tracking with customizable formats and UI.
- ✅ Supports both JSON and CSV file formats
- ✅ Choose between NameScore, NameTime, or NameScoreTime entry formats
- ✅ Automatic sorting and merging of entries
- ✅ Easy-to-use UI components and sample scene
- ✅ Add or overwrite entries by player name
- ✅ Supports duplicate entries if enabled
- ✅ Platform-specific save path configuration (PC, Android, iOS)
- ✅ Sample prefab and scene included
-
Open Unity
-
Go to Window → Package Manager
-
Click + → Add package from Git URL
-
Paste: https://github.com/IreshSampath/unity-assets-easy-leaderboard.git
-
Click Add
- Unity 2022.3 or newer
- TextMeshPro (
com.unity.textmeshpro
)
There are two ways to get started: manual setup or using the provided sample prefab.
- Add the
EasyLeaderboardManager
component to a GameObject in your scene - In the Inspector, configure:
Leaderboard Type
:JSON
orCSV
Entry Format
:NameScore
,NameTime
, orNameScoreTime
Allow Duplicate Names
: toggle on or offUse Score Sorting In NameScoreTime
: toggle on or offDeploy Platform
:PC
,Android
, oriOS
-
Add the
EasyLeaderboardUIManager
component -
Assign:
Entry Parent
: container for leaderboard entriesEntry
: the prefab for each entry (usingTMP_Text
)
- Open the
Assets/Samples/Easy Leaderboard/1.0.3/Easy Leaderboard Sample/Prefabs
folder - Drag the
EasyLeaderboard
prefab into your scene - Customize the components via Inspector
➕ Add an Entry
EasyLeaderboardEvents.RaiseOnLeaderboardEntryAdded(
new LeaderboardEntry(
_nameInputField.text,
int.Parse(_scoreInputField.text),
float.Parse(_timeInputField.text)
)
);
🔄 Load the Leaderboard
EasyLeaderboardEvents.RaiseOnLeaderboardLoadRequested();
📃 UI Display
The EasyLeaderboardUIManager
automatically populates a scrollable UI list using your assigned prefab.
Make sure to:
- Assign the input fields (Name, Score, Time)
- Assign the entry parent Transform
- Assign the entry prefab (with TMP_Text components)
Thanks for using Easy Leaderboard!
- Feel free to contribute, report bugs, or request new features.
Iresh Sampath 🔗 LinkedIn Profile