How to make an Online Leaderboard in Unity for Free!

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 153

  • @samyam
    @samyam  ปีที่แล้ว +31

    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 ปีที่แล้ว +1

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

  • @danqzq
    @danqzq ปีที่แล้ว +113

    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 ปีที่แล้ว +3

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

    • @rb76768
      @rb76768 ปีที่แล้ว +2

      So it can work on mobile right?

    • @rb76768
      @rb76768 ปีที่แล้ว +4

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

    • @danqzq
      @danqzq ปีที่แล้ว +2

      @@rb76768 yes absolutely!

    • @danqzq
      @danqzq ปีที่แล้ว +1

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

  • @eloreneloreneloreneloreneloren
    @eloreneloreneloreneloreneloren ปีที่แล้ว +1

    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 ปีที่แล้ว +2

    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!

  • @fulgencejuniorlohore854
    @fulgencejuniorlohore854 ปีที่แล้ว

    2023 and still relevant, thank you for this tutorial!

  • @dummyskin7768
    @dummyskin7768 ปีที่แล้ว +5

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

  • @PatrikBergsten
    @PatrikBergsten ปีที่แล้ว +1

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

  • @forbiddenbox
    @forbiddenbox ปีที่แล้ว +1

    Your channel is actually underrated, Ima talk to the TH-cam algorithm rq

  • @midniteoilsoftware
    @midniteoilsoftware ปีที่แล้ว

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

  • @kozmobotgames
    @kozmobotgames ปีที่แล้ว

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

  • @HOBOTROLL9000
    @HOBOTROLL9000 ปีที่แล้ว +7

    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 11 หลายเดือนก่อน

      YES! Were you able to solve this problem?

    • @HOBOTROLL9000
      @HOBOTROLL9000 11 หลายเดือนก่อน

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

    • @lew.bow.studios
      @lew.bow.studios 11 หลายเดือนก่อน +1

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

    • @tymonbielski3107
      @tymonbielski3107 10 หลายเดือนก่อน +1

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

    • @gtechgamedevelopment
      @gtechgamedevelopment 10 หลายเดือนก่อน

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

  • @HipToBeeSquare
    @HipToBeeSquare หลายเดือนก่อน

    Incredible tool and very useful tutorial thank you!

  • @meta_metaldroid5720
    @meta_metaldroid5720 ปีที่แล้ว +1

    You heard my prayers, let's go!!

  • @matanyamin1
    @matanyamin1 ปีที่แล้ว

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

  • @lominero5
    @lominero5 ปีที่แล้ว +1

    Thank you so much! This was quick and useful

  • @ytmiva2
    @ytmiva2 11 หลายเดือนก่อน

    Thank you for sharing this useful video!

  • @Fray-X8
    @Fray-X8 ปีที่แล้ว +5

    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 6 หลายเดือนก่อน

      same problem

    • @alicia8382
      @alicia8382 6 หลายเดือนก่อน

      @@gamerstrak40 did you ever figure this out?

    • @Parikollo
      @Parikollo 6 หลายเดือนก่อน

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

    • @gameloperr
      @gameloperr 5 หลายเดือนก่อน +2

      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 )

    • @BurnTilDeath
      @BurnTilDeath 2 หลายเดือนก่อน

      @@gameloperr What's the syntax to access this "unique Id"?
      I'm trying to make it so the scoreboard displays the current player's position in the rankings, rather than just the top scores (only a few scores will be displayed).

  • @walterh2113
    @walterh2113 ปีที่แล้ว +3

    I like fire trucks and moster trucks

  • @Mitzarin
    @Mitzarin ปีที่แล้ว +1

    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.

  • @VEOdev
    @VEOdev ปีที่แล้ว +2

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

  • @runrajrun
    @runrajrun ปีที่แล้ว

    Baaaaa I needed this! Thanks a ton

  • @olpacheco
    @olpacheco 7 หลายเดือนก่อน

    Thank you very much for this, it is awesome!

  • @dreamisover9813
    @dreamisover9813 ปีที่แล้ว +1

    Great to the point tutorial, thanks

  • @sjw806
    @sjw806 9 หลายเดือนก่อน

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

  • @siegfriedc2332
    @siegfriedc2332 2 หลายเดือนก่อน

    How do U specify the player's personal score? I tried following the documentation from Dan's scoreboard plug-in, but the functions "IsMine" and "GetPersonalEntry" always come up as not existing in the context. I don't really understand how we're supposed to use them.

  • @random_precision_software
    @random_precision_software ปีที่แล้ว

    Great Video Sam !!! Thanks !

  • @davidandrominah.1920
    @davidandrominah.1920 10 หลายเดือนก่อน +1

    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 10 หลายเดือนก่อน

      I'm getting the same error if anyone can help please, I'll upload a screenshot of the error code in a sec

  • @ΣωτηριοςΑλεξιου
    @ΣωτηριοςΑλεξιου ปีที่แล้ว +2

    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 ปีที่แล้ว +1

      Did you figure it out?

    • @benjaminbailey4390
      @benjaminbailey4390 ปีที่แล้ว +1

      i have the same issue

    • @eloreneloreneloreneloreneloren
      @eloreneloreneloreneloreneloren ปีที่แล้ว

      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.

  • @azrhyga
    @azrhyga ปีที่แล้ว

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

  • @juanestebangonzalezsanchez5599
    @juanestebangonzalezsanchez5599 ปีที่แล้ว

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

  • @nicholasbrave1
    @nicholasbrave1 ปีที่แล้ว +7

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

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

    • @sasa0gunther84
      @sasa0gunther84 ปีที่แล้ว +1

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

  • @gamerstrak40
    @gamerstrak40 6 หลายเดือนก่อน

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

  • @hashkeyTheDev
    @hashkeyTheDev ปีที่แล้ว +1

    10/10 tutorial

    • @adilcetin618
      @adilcetin618 6 หลายเดือนก่อน

      just clear the PlayerPrefs.

  • @jawbytes380
    @jawbytes380 ปีที่แล้ว +2

    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  ปีที่แล้ว +2

      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 ปีที่แล้ว +1

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

  • @gizmowizard352
    @gizmowizard352 21 วันที่ผ่านมา

    Highly recommended to beginners or experts!

  • @VojtaGaming25
    @VojtaGaming25 7 หลายเดือนก่อน

    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

  • @HistoryHat
    @HistoryHat ปีที่แล้ว +1

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

    • @cheesebradley3369
      @cheesebradley3369 ปีที่แล้ว

      Your score number needs to be a number

    • @IpuKi
      @IpuKi ปีที่แล้ว

      @@cheesebradley3369Could you give an example please?

  • @manutm4uu
    @manutm4uu ปีที่แล้ว +3

    what happens when two usernames are identical?

    • @o1497
      @o1497 ปีที่แล้ว +1

      Magic

    • @manutm4uu
      @manutm4uu ปีที่แล้ว

      @@o1497 😆

    • @eloreneloreneloreneloreneloren
      @eloreneloreneloreneloreneloren ปีที่แล้ว

      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.

  • @jhonrendysortono3553
    @jhonrendysortono3553 ปีที่แล้ว +1

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

    • @benjaminbailey4390
      @benjaminbailey4390 ปีที่แล้ว

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

    • @DBM97
      @DBM97 4 หลายเดือนก่อน +1

      @@benjaminbailey4390 same here D: hope someone knows how its solved

    • @DBM97
      @DBM97 4 หลายเดือนก่อน

      I have found the solution :D
      Somehow submitting on the same device keeps the same user ID. You can call "LeaderboardCreator.ResetPlayer();" to make sure you get a new ID. Hope this fixes it for you!

  • @raandomplayer8589
    @raandomplayer8589 9 หลายเดือนก่อน

    Thanks!
    ...why didnt u use foreach?

    • @raandomplayer8589
      @raandomplayer8589 9 หลายเดือนก่อน

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

  • @zakariaharrach20
    @zakariaharrach20 ปีที่แล้ว +1

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

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

  • @populargamesonline
    @populargamesonline 8 หลายเดือนก่อน

    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?

  • @shazeerrra
    @shazeerrra 7 หลายเดือนก่อน

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

  • @Adamcb8
    @Adamcb8 9 หลายเดือนก่อน

    AMAZING

  • @charliegdwin
    @charliegdwin ปีที่แล้ว

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

  • @muv0
    @muv0 ปีที่แล้ว

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

  • @BobPasclar
    @BobPasclar 8 หลายเดือนก่อน

    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 !

  • @aleksapesic4112
    @aleksapesic4112 8 หลายเดือนก่อน

    Is it possible to make scrollable leaderboard?

  • @Distriks
    @Distriks 6 หลายเดือนก่อน

    how would this work for an android game?

  • @emilianocatalanfurbatto2228
    @emilianocatalanfurbatto2228 ปีที่แล้ว

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

  • @Isakbuvik
    @Isakbuvik ปีที่แล้ว

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

  • @viviviontheway
    @viviviontheway 11 หลายเดือนก่อน

    thank you :)

  • @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 ปีที่แล้ว +1

      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.

  • @GemTappX
    @GemTappX ปีที่แล้ว

    Do you have any games released?

  • @ShinchiAsanich
    @ShinchiAsanich 7 หลายเดือนก่อน

    How can I delete all entries at once?

  • @chasesommer
    @chasesommer ปีที่แล้ว

    so what editor theme is that

  • @톰-l2o
    @톰-l2o 10 หลายเดือนก่อน

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

  • @KyryloVesna
    @KyryloVesna ปีที่แล้ว

    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?

  • @baker_dev
    @baker_dev ปีที่แล้ว +1

    Its will be with photon?

    • @samyam
      @samyam  ปีที่แล้ว

      no, an easy online leaderboard service

    • @davutinat
      @davutinat ปีที่แล้ว

      @@samyam LootLocker ?

  • @Filmblanc
    @Filmblanc ปีที่แล้ว

    Does this work for iOS?

  • @JamesPhanJP
    @JamesPhanJP ปีที่แล้ว

    Great

  • @wickedpichu571
    @wickedpichu571 ปีที่แล้ว

    💖💖💖💖💖

  • @OrChess1
    @OrChess1 9 หลายเดือนก่อน

    Would it work on ios or not ?

    • @samyam
      @samyam  9 หลายเดือนก่อน

      it should

  • @Johnnys_Manager
    @Johnnys_Manager 18 วันที่ผ่านมา

    9:44 i don’t not have set leaderboard entry showing up and i followed the code 😭

  • @trannguyenminhthoaifplhcm_2957
    @trannguyenminhthoaifplhcm_2957 ปีที่แล้ว

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

  • @CodeWithWeeZ
    @CodeWithWeeZ ปีที่แล้ว

    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?

    • @CodeWithWeeZ
      @CodeWithWeeZ ปีที่แล้ว

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

  • @javierlopezredondo5752
    @javierlopezredondo5752 ปีที่แล้ว

    How i can contact you

  • @Vinishmachado
    @Vinishmachado 4 หลายเดือนก่อน

    cant copy the code pls help

  • @nopepsi206
    @nopepsi206 ปีที่แล้ว +4

    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
    @IpuKi ปีที่แล้ว

    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 10 หลายเดือนก่อน

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

  • @lucilaparodi
    @lucilaparodi 4 หลายเดือนก่อน

    Hi! I have this errors
    [13:55:54] [LeaderboardCreator] Uploading entry data failed!
    UnityEngine.Debug:LogError (object)
    [13:55:57] [LeaderboardCreator] Not Found
    UnityEngine.Debug:LogError (object)
    Do you know why?