How to make an Online Leaderboard in Unity for Free!
Ғылым және технология
Make an online leaderboard for totally free using a simple tool in Unity.
ᐅGet the full Source Code Bundle to my Unity Tutorials 🤓
sam-yam.itch.io/samyam-full-s...
📥 Get the Source Code 📥
/ 77825425
Wishlist my new game BUMBI on Steam!
store.steampowered.com/app/28...
🔗 Relevant Video Links 🔗
ᐅLeaderboard Creator
danqzq.itch.io/leaderboard-cr...
ᐅCrazy Driver Devlog
• I Tried Making a Crazy...
🤝 Support Me 🤝
Patreon: / samyg
Donate: ko-fi.com/samyam
►⏱️ Timestamps ⏱️
0:00 UI Set Up
1:48 Leadboard
0:32 Leaderboard
6:52 Pass Values to Leaderboard
10:08 Finishing Touches
12:03 Outro
💖💖THANK YOU TO ALL MY PATRONS 💖💖
❯❯❯ My Links ❮❮❮
💗 Patreon 💗
/ samyg
💬 Discord Server 💬
/ discord
🐦 Twitter 🐦
/ samyam_utube
📚 Facebook 📚
/ samyam.youtube
👍 Like and Subscribe! 👍
🖥️ Computer Setup 🖥️
*As an Amazon Associate I earn from qualifying purchases.
www.amazon.com/shop/samyam
Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we have recommended. While clicking these links won't cost you any money, they will help me fund my development projects while recommending great assets!
#unity3d #gamedev #madewithunity
Пікірлер: 135
Apparently the tool has a profanity filter! If you go on itch.io and click Manage on your Leaderboard, you can check the "Profanity Filter" which is handled on the server. Wishlist my new game BUMBI on Steam! store.steampowered.com/app/2862470/BUMBI/
@wr41thx29
Жыл бұрын
nice! This was a great tutorial, thank you! :)
Thanks for using and making an in-depth tutorial on my plugin! Looking forward to adding more features to it in the future :)
@rb76768
Жыл бұрын
Awesome stuff!!!!!!!!!!
@rb76768
Жыл бұрын
So it can work on mobile right?
@rb76768
Жыл бұрын
Can I do a daily leaderboard, by daily deleting all leaderboard entries?
@danqzq
Жыл бұрын
@@rb76768 yes absolutely!
@danqzq
Жыл бұрын
@@rb76768 left an answer to your question on my devlog video on the tool, there is a workaround for it!
The amount of useful features you shown is insane. I knew about Ctrl-Shift-F, but the way you selected anchors via Shift and Alt is so cool... Locking and unlocking inspector window is also very useful for newbies.
Thanks for the tutorial. As much as I appreciate the overall project, there are some small things you showed off (like dropping a group of objects into a list and having it populate all at once) that I will be taking into my regular process, and I am so thrilled to have learned about that. So thank you!
Thanks for this! You explain very succinctly and clearly, super easy to follow along
Thanks, that is the tutorial I always wanted to watch! I could now implement this into my future online game.
Extremely helpful video! Thank you very much for helping us develop better.
Thank you so much! This was quick and useful
Perfect timing. I'm going to be adding this to the multiplayer card game I'm writing.
Great to the point tutorial, thanks
Baaaaa I needed this! Thanks a ton
Great Video Sam !!! Thanks !
2023 and still relevant, thank you for this tutorial!
Thank you very much for this, it is awesome!
Thank you for sharing this useful video!
Very great!! Thanks for sharing it!! I appreciate it :D
Your channel is actually underrated, Ima talk to the KZread algorithm rq
You heard my prayers, let's go!!
Awesome tool and video, BUT is this long time support or it will shut down in anytime ? since it is a free tool
I may be dumb, but I cannot get the SetLeaderboard to show up in the onclick. Apparently you cannot pass multiple values? Getleaderboard shows. SOLVED - I have a separate ScoreManaging prefab so I ended up doing everyone there instead of on the button w/ conflicts.
Great tutorial. How do you use VS Code with Unity? Thanksss
Omnisharp commands working in latest vscode c# extension? I had to switch to vs22 Omnisharp command not found in mine.
Thank you for this amazing video! I have a simple question. Does this work on IOS too?
hi i have a problem i imported the unity package but the namespace Dan.main does not exist and also the functions give me errors because of this please help
How to make to count and send high score from my game, in this method player manualy can set score cca 99999 and submit. I want to sync and submit score txt counter that is already integrated in game, how to do this?
Is there a way to update the scores even if they are smaller than before?
when entering the score it doesn't increase but overwrites the previously entered data, does anyone have a solution? pls help
Hi. What keyboard do you use? Sounds really nice. P.S Couldn't find it in your amazon shopping list.
@samyam
Жыл бұрын
drop ctrl! drop.com/buy/drop-ctrl-mechanical-keyboard?defaultSelectionIds=972407%2C972414 i believe it's cherry mx brown, not 100% sure
I have a problem. When i try to add a new score with a new name, it is updating the old one with new one instead of just inserting the new one.Pls help me
@gamerstrak40
Ай бұрын
same problem
@alicia8382
Ай бұрын
@@gamerstrak40 did you ever figure this out?
@Parikollo
22 күн бұрын
You have to add "LeaderboardCreator.ResetPlayer();" into you Start function or somewhere in GetLeaderboard function.
@gameloperr
13 күн бұрын
dont know if you've solved it or the other people have solved it but basically in the backend every player has a unique id and to put 2 entries in the same 'session' you have to add 'LeaderboardCreator.ResetPlayer()' in the setleadboardentry function (outside & after the leaderboard.uploadnewentry )
Hi ! I'm working on webgl project. Does this method work on a https host ?
Does anyone experience a problem on your leaderboard where you can only submit a score using one name? And every time you upload a new high score, it seems to replace the old score and name with the new one
@lew.bow.studios
6 ай бұрын
YES! Were you able to solve this problem?
@HOBOTROLL9000
6 ай бұрын
@@lew.bow.studios no I was not sadly
@lew.bow.studios
6 ай бұрын
@@HOBOTROLL9000 I figured it out and added a comment explaining how to fix it :)
@tymonbielski3107
5 ай бұрын
@@lew.bow.studios Hey where can i find this comment? I have the same problem and I still was not able to find a solution.
@animewins1
4 ай бұрын
@@tymonbielski3107 I don't think he figured it out, did you?
thank you :)
Hello I had a question when i click on submit a get this error : NullReferenceException: Object reference not set to an instance of an object And i also get this error when i go on the leaderboard from the main menu i created : IndexOutOfRangeException: Index was outside the bounds of the array. Leaderboard.b__4_0 (Dan.Models.Entry[] msg) (at Assets/Scripts/Leaderboard.cs:25) Can anyone Help me? Thank you
@jasonmiles7502
5 ай бұрын
I'm getting the same error if anyone can help please, I'll upload a screenshot of the error code in a sec
Hi, thank you very much for this tutorial, but do you know that if a hundred or a thousand players call the leaderboard, it will respond well? I tried to find the performance in terms of reading and writing but I found nothing. Thank you !
can you tell me how to reset the leaderboard using a button in unity?
hello why in my case input always change first name and skor when score upper or lower just change the first one
@benjaminbailey4390
7 ай бұрын
i have the same issue, did u find a solution?
AMAZING
10/10 tutorial
@adilcetin618
Ай бұрын
just clear the PlayerPrefs.
how would this work for an android game?
"let's create an empty child and call that names" made me laugh
Is it possible to make scrollable leaderboard?
hi sam, Thank you. I have a question, Can I store more than two values in this leaderboard ? (like name, score, time, coins)
@danqzq
Жыл бұрын
Yes, there is an "Extra" string field which you can use however you like. Check out the page of the tool for more info!
@GeniusK
Жыл бұрын
@@danqzq thank you. I will check it.
I like fire trucks and moster trucks
Assets\LeaderboardCreator\Scripts\Main\LeaderboardCreatorBehaviour.cs(6,7): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)
@DrErwin-kx8gw
Жыл бұрын
i got the same problem
@samyam
Жыл бұрын
That means there are two Newtonsoft DLLs in your Unity Project, search them in the Project folder and delete one (I think deleting the one from the leaderboard creator would be best)
@potatoistomato4938
Жыл бұрын
@@samyam what do i delete
@vanching4414
Жыл бұрын
did you manage to fix this error?
@lominero5
Жыл бұрын
@@vanching4414 I fixed it by searching for Newtonsoft in the assets and deleting one of them as SamYam mentioned
so what editor theme is that
Is it possible to make the lowest score on top? Thanks❤
How can I delete all entries at once?
Hi Sam, I'm having an issue where I can only add one entry. Any new score or name update just affects the same entry, the name will always be updated, but the score will only post if it's higher than before. Any idea what could be causing this?
@nicholasbrave1
Жыл бұрын
Ok turns out this is the intended function from a new update that the creator did. If you want to test multiple entries, just clear the PlayerPrefs.
@sasa0gunther84
Жыл бұрын
@@nicholasbrave1 may I ask, how you cleared the PlayerPrefs?
@nicholasbrave1
Жыл бұрын
@@sasa0gunther84 Under edit you should see an option to "Clear All PlayerPrefs"
@sasa0gunther84
Жыл бұрын
@@nicholasbrave1 thank you!
@vanching4414
Жыл бұрын
@@nicholasbrave1 hey if i want to test it in my mobile does it automatically clear the playerprefs? or should i make a code for that?
Hi ! Can you make tutorial scoreboard for quiz game? Thankss
When i try to submit it gives me this: FormatException: Input string was not in a correct format
@cheesebradley3369
11 ай бұрын
Your score number needs to be a number
@IpuKi
8 ай бұрын
@@cheesebradley3369Could you give an example please?
this was an amazing tutorial. I have a problem. When i try to add a new score with a new name, it is updating the old one with new one instead of just inserting the new one.
@AMA-ne8ks
8 ай бұрын
Did you figure it out?
@benjaminbailey4390
7 ай бұрын
i have the same issue
@--.--
7 ай бұрын
There may only be one entry per one player. This is done to support features like name editing and deleting an entry in a safe way, such that other people don't mess around with other people's entries. If you do not want this, then disable "Unique Usernames" for your leaderboard and make use of the LeaderboardCreator.ResetPlayer() function during the callback from uploading an entry. Note that after this, a player's previous entry cannot be edited nor deleted by the player themself.
Can you do a free course in youtube to learn c# unity
Great
Do you have any games released?
💖💖💖💖💖
Thanks! ...why didnt u use foreach?
@raandomplayer8589
4 ай бұрын
watched till the end.. can do that if else on foreach i think
what happens when two usernames are identical?
@o1497
9 ай бұрын
Magic
@manutm4uu
9 ай бұрын
@@o1497 😆
@--.--
7 ай бұрын
There may only be one entry per one player. This is done to support features like name editing and deleting an entry in a safe way, such that other people don't mess around with other people's entries. If you do not want this, then disable "Unique Usernames" for your leaderboard and make use of the LeaderboardCreator.ResetPlayer() function during the callback from uploading an entry. Note that after this, a player's previous entry cannot be edited nor deleted by the player themself.
Hi. I saw your video. If you know how I can get my rank,score pelase teach me.
Does this work for iOS?
Isn`t it dangerous to give an option to user to select a name that will display in the leaderboard? User could use something absolutely inappropriate and app will be banned, or am I wrong?
0:13 "then let's create an empty child"
Would it work on ios or not ?
@samyam
3 ай бұрын
it should
Its will be with photon?
@samyam
Жыл бұрын
no, an easy online leaderboard service
@davutinat
Жыл бұрын
@@samyam LootLocker ?
very fast operation, some weak users can't keep up
How i can contact you
This sadly is not working for my android game , when i am in the editor the leaderboard works fine but when i build APK it doesnt work
@samyam
Жыл бұрын
What do you mean by doesn’t work?
@CoderTanmay
Жыл бұрын
@@samyam it doesn't show leaderboards data when i install it on my phone , but i can see it when i am in the editor. This same problem is getting faced by others and the plugin creator is working on it
The UI setup in hierarchy is terrible, just make an empty game object for the entire scoreboard and move just that gameobject if you want to move the panel instead of selecting all of the scoreboard objects lol, also the idea with adding the Leaderboard scrip to another game object is wrong , imagine you want to make a prefab of your Leaderboard, and you'll be missing script reference, just keep thje SOLID principle pls, make tutorials that actually teach something extendable not just "per tutorial"
I keep getting the problem: FormatException: Input string was not in a correct format. System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) (at :0) System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) (at :0) Whenever I try to input a name into the leaderboard, what can I do?
@jasonmiles7502
5 ай бұрын
i think this might be because your score value is a float value i got the same error until i converted my float to int value with the System.Convert.ToInt32()