Search Unity

local leaderboard with multiple names

Discussion in 'Scripting' started by ghost123_1234, Apr 25, 2015.

  1. ghost123_1234

    ghost123_1234

    Joined:
    Jan 9, 2015
    Posts:
    88
    hello

    I'm making a game and what i wanna do is that the leaderboard has like 5 names that are the best.
    and if you reach the amount of points to get in that leaderboard you can type in your name and then you be places in the leaderboard

    i prefer doing it withouth a plugin or something

    But i dont know how to do that
    i look a lot on the internet but i cant seem to find any
     
    Last edited: Apr 25, 2015
  2. AngryAnt

    AngryAnt

    Keyboard Operator

    Joined:
    Oct 25, 2005
    Posts:
    3,045
    The easiest built-in way to do this is via PlayerPrefs - naming the high score entries Score1 Score2 ... Score10 and ScoreName1 ... ScoreName10 or similar.
     
  3. ghost123_1234

    ghost123_1234

    Joined:
    Jan 9, 2015
    Posts:
    88
    Do you maybe have some kind of code example to push me in the right direction
    i worked playerpref before but withouth names and just a score