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

  • @samyam
    @samyam Жыл бұрын

    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

    @wr41thx29

    Жыл бұрын

    nice! This was a great tutorial, thank you! :)

  • @danqzq
    @danqzq Жыл бұрын

    Thanks for using and making an in-depth tutorial on my plugin! Looking forward to adding more features to it in the future :)

  • @rb76768

    @rb76768

    Жыл бұрын

    Awesome stuff!!!!!!!!!!

  • @rb76768

    @rb76768

    Жыл бұрын

    So it can work on mobile right?

  • @rb76768

    @rb76768

    Жыл бұрын

    Can I do a daily leaderboard, by daily deleting all leaderboard entries?

  • @danqzq

    @danqzq

    Жыл бұрын

    @@rb76768 yes absolutely!

  • @danqzq

    @danqzq

    Жыл бұрын

    @@rb76768 left an answer to your question on my devlog video on the tool, there is a workaround for it!

  • @--.--
    @--.--7 ай бұрын

    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.

  • @MrSacralidge
    @MrSacralidge Жыл бұрын

    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!

  • @PatrikBergsten
    @PatrikBergsten8 ай бұрын

    Thanks for this! You explain very succinctly and clearly, super easy to follow along

  • @kozmobotgames
    @kozmobotgames Жыл бұрын

    Thanks, that is the tutorial I always wanted to watch! I could now implement this into my future online game.

  • @matanyamin1
    @matanyamin18 ай бұрын

    Extremely helpful video! Thank you very much for helping us develop better.

  • @lominero5
    @lominero5 Жыл бұрын

    Thank you so much! This was quick and useful

  • @midniteoilsoftware
    @midniteoilsoftware Жыл бұрын

    Perfect timing. I'm going to be adding this to the multiplayer card game I'm writing.

  • @dreamisover9813
    @dreamisover9813 Жыл бұрын

    Great to the point tutorial, thanks

  • @runrajrun
    @runrajrun Жыл бұрын

    Baaaaa I needed this! Thanks a ton

  • @random_precision_software
    @random_precision_software Жыл бұрын

    Great Video Sam !!! Thanks !

  • @fulgencejuniorlohore854
    @fulgencejuniorlohore8547 ай бұрын

    2023 and still relevant, thank you for this tutorial!

  • @olpacheco
    @olpachecoАй бұрын

    Thank you very much for this, it is awesome!

  • @ytmiva2
    @ytmiva25 ай бұрын

    Thank you for sharing this useful video!

  • @azrhyga
    @azrhyga Жыл бұрын

    Very great!! Thanks for sharing it!! I appreciate it :D

  • @forbiddenbox
    @forbiddenbox Жыл бұрын

    Your channel is actually underrated, Ima talk to the KZread algorithm rq

  • @meta_metaldroid5720
    @meta_metaldroid5720 Жыл бұрын

    You heard my prayers, let's go!!

  • @VEOdev
    @VEOdev Жыл бұрын

    Awesome tool and video, BUT is this long time support or it will shut down in anytime ? since it is a free tool

  • @Mitzarin
    @Mitzarin Жыл бұрын

    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.

  • @juanestebangonzalezsanchez5599
    @juanestebangonzalezsanchez5599 Жыл бұрын

    Great tutorial. How do you use VS Code with Unity? Thanksss

  • @NavedAhmadNA
    @NavedAhmadNA9 ай бұрын

    Omnisharp commands working in latest vscode c# extension? I had to switch to vs22 Omnisharp command not found in mine.

  • @sjw806
    @sjw8063 ай бұрын

    Thank you for this amazing video! I have a simple question. Does this work on IOS too?

  • @VojtaGaming25
    @VojtaGaming25Ай бұрын

    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

  • @GameTechnich
    @GameTechnich2 ай бұрын

    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?

  • @muv0
    @muv07 ай бұрын

    Is there a way to update the scores even if they are smaller than before?

  • @gamerstrak40
    @gamerstrak40Ай бұрын

    when entering the score it doesn't increase but overwrites the previously entered data, does anyone have a solution? pls help

  • @viva180
    @viva180 Жыл бұрын

    Hi. What keyboard do you use? Sounds really nice. P.S Couldn't find it in your amazon shopping list.

  • @samyam

    @samyam

    Жыл бұрын

    drop ctrl! drop.com/buy/drop-ctrl-mechanical-keyboard?defaultSelectionIds=972407%2C972414 i believe it's cherry mx brown, not 100% sure

  • @FratGaming5544
    @FratGaming55448 ай бұрын

    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

    @gamerstrak40

    Ай бұрын

    same problem

  • @alicia8382

    @alicia8382

    Ай бұрын

    @@gamerstrak40 did you ever figure this out?

  • @Parikollo

    @Parikollo

    22 күн бұрын

    You have to add "LeaderboardCreator.ResetPlayer();" into you Start function or somewhere in GetLeaderboard function.

  • @gameloperr

    @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 )

  • @emilianocatalanfurbatto2228
    @emilianocatalanfurbatto22286 ай бұрын

    Hi ! I'm working on webgl project. Does this method work on a https host ?

  • @HOBOTROLL9000
    @HOBOTROLL90007 ай бұрын

    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

    @lew.bow.studios

    6 ай бұрын

    YES! Were you able to solve this problem?

  • @HOBOTROLL9000

    @HOBOTROLL9000

    6 ай бұрын

    @@lew.bow.studios no I was not sadly

  • @lew.bow.studios

    @lew.bow.studios

    6 ай бұрын

    ​@@HOBOTROLL9000 I figured it out and added a comment explaining how to fix it :)

  • @tymonbielski3107

    @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

    @animewins1

    4 ай бұрын

    @@tymonbielski3107 I don't think he figured it out, did you?

  • @viviviontheway
    @viviviontheway5 ай бұрын

    thank you :)

  • @davidandrominah.1920
    @davidandrominah.19205 ай бұрын

    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

    @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

  • @user-lj5hg4cf6q
    @user-lj5hg4cf6q2 ай бұрын

    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 !

  • @charliegdwin
    @charliegdwin11 ай бұрын

    can you tell me how to reset the leaderboard using a button in unity?

  • @jhonrendysortono3553
    @jhonrendysortono35537 ай бұрын

    hello why in my case input always change first name and skor when score upper or lower just change the first one

  • @benjaminbailey4390

    @benjaminbailey4390

    7 ай бұрын

    i have the same issue, did u find a solution?

  • @Adamcb8
    @Adamcb84 ай бұрын

    AMAZING

  • @hashkeyTheDev
    @hashkeyTheDev Жыл бұрын

    10/10 tutorial

  • @adilcetin618

    @adilcetin618

    Ай бұрын

    just clear the PlayerPrefs.

  • @Distriks
    @DistriksАй бұрын

    how would this work for an android game?

  • @dummyskin7768
    @dummyskin7768 Жыл бұрын

    "let's create an empty child and call that names" made me laugh

  • @aleksapesic4112
    @aleksapesic41122 ай бұрын

    Is it possible to make scrollable leaderboard?

  • @GeniusK
    @GeniusK Жыл бұрын

    hi sam, Thank you. I have a question, Can I store more than two values in this leaderboard ? (like name, score, time, coins)

  • @danqzq

    @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

    @GeniusK

    Жыл бұрын

    @@danqzq thank you. I will check it.

  • @walterh2113
    @walterh2113 Жыл бұрын

    I like fire trucks and moster trucks

  • @jawbytes380
    @jawbytes380 Жыл бұрын

    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

    @DrErwin-kx8gw

    Жыл бұрын

    i got the same problem

  • @samyam

    @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

    @potatoistomato4938

    Жыл бұрын

    @@samyam what do i delete

  • @vanching4414

    @vanching4414

    Жыл бұрын

    did you manage to fix this error?

  • @lominero5

    @lominero5

    Жыл бұрын

    @@vanching4414 I fixed it by searching for Newtonsoft in the assets and deleting one of them as SamYam mentioned

  • @chasesommer
    @chasesommer Жыл бұрын

    so what editor theme is that

  • @privisak0065
    @privisak00657 ай бұрын

    Is it possible to make the lowest score on top? Thanks❤

  • @arslanbekbekbauov6561
    @arslanbekbekbauov6561Ай бұрын

    How can I delete all entries at once?

  • @nicholasbrave1
    @nicholasbrave1 Жыл бұрын

    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

    @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

    @sasa0gunther84

    Жыл бұрын

    @@nicholasbrave1 may I ask, how you cleared the PlayerPrefs?

  • @nicholasbrave1

    @nicholasbrave1

    Жыл бұрын

    @@sasa0gunther84 Under edit you should see an option to "Clear All PlayerPrefs"

  • @sasa0gunther84

    @sasa0gunther84

    Жыл бұрын

    @@nicholasbrave1 thank you!

  • @vanching4414

    @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?

  • @shazeerrra
    @shazeerrra2 ай бұрын

    Hi ! Can you make tutorial scoreboard for quiz game? Thankss

  • @HistoryHat
    @HistoryHat11 ай бұрын

    When i try to submit it gives me this: FormatException: Input string was not in a correct format

  • @cheesebradley3369

    @cheesebradley3369

    11 ай бұрын

    Your score number needs to be a number

  • @IpuKi

    @IpuKi

    8 ай бұрын

    @@cheesebradley3369Could you give an example please?

  • @user-ou4gx5rm3q
    @user-ou4gx5rm3q8 ай бұрын

    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

    @AMA-ne8ks

    8 ай бұрын

    Did you figure it out?

  • @benjaminbailey4390

    @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.

  • @zakariaharrach20
    @zakariaharrach20 Жыл бұрын

    Can you do a free course in youtube to learn c# unity

  • @LinhPhan-sq2wr
    @LinhPhan-sq2wr Жыл бұрын

    Great

  • @GemTappX
    @GemTappX Жыл бұрын

    Do you have any games released?

  • @wickedpichu571
    @wickedpichu571 Жыл бұрын

    💖💖💖💖💖

  • @raandomplayer8589
    @raandomplayer85894 ай бұрын

    Thanks! ...why didnt u use foreach?

  • @raandomplayer8589

    @raandomplayer8589

    4 ай бұрын

    watched till the end.. can do that if else on foreach i think

  • @manutm4uu
    @manutm4uu Жыл бұрын

    what happens when two usernames are identical?

  • @o1497

    @o1497

    9 ай бұрын

    Magic

  • @manutm4uu

    @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.

  • @user-kv4ty5kq9k
    @user-kv4ty5kq9k4 ай бұрын

    Hi. I saw your video. If you know how I can get my rank,score pelase teach me.

  • @Filmblanc
    @Filmblanc11 ай бұрын

    Does this work for iOS?

  • @KyryloVesna
    @KyryloVesna7 ай бұрын

    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?

  • @Levelonesucks
    @Levelonesucks10 ай бұрын

    0:13 "then let's create an empty child"

  • @divided6754
    @divided67543 ай бұрын

    Would it work on ios or not ?

  • @samyam

    @samyam

    3 ай бұрын

    it should

  • @baker_dev
    @baker_dev Жыл бұрын

    Its will be with photon?

  • @samyam

    @samyam

    Жыл бұрын

    no, an easy online leaderboard service

  • @davutinat

    @davutinat

    Жыл бұрын

    @@samyam LootLocker ?

  • @trannguyenminhthoaifplhcm_2957
    @trannguyenminhthoaifplhcm_2957 Жыл бұрын

    very fast operation, some weak users can't keep up

  • @javierlopezredondo5752
    @javierlopezredondo575211 ай бұрын

    How i can contact you

  • @CoderTanmay
    @CoderTanmay Жыл бұрын

    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

    @samyam

    Жыл бұрын

    What do you mean by doesn’t work?

  • @CoderTanmay

    @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

  • @ecenjoyer
    @ecenjoyer Жыл бұрын

    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"

  • @IpuKi
    @IpuKi8 ай бұрын

    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

    @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()

Келесі