- Home /
ArrayPrefs and PlayerPrefs
ArrayPrefs and PlayerPrefs are not viable option...Unitron does not recognize them. How do I present to a player(s) the option to input their name, play the game with a final score then keep that info, while still allowing follow-up players to do the same?
Answer by Eric5h5 · Mar 04, 2011 at 10:25 PM
Use PlayerPrefs and ArrayPrefs. Whether Unitron "recognizes" them or not is irrelevant, and has nothing to do with whether they work (because they do).
Answer by efge · Mar 04, 2011 at 10:20 PM
PlayerPrefs are only stored on the players computer. It would be better to store information on a server.
Take a look at the wiki: Server Side Highscores
Good starting point with SQL, PHP and JS code.
For user input (string) you could use GUI.TextField.
Storing on a server isn't "better", it's just different, and possibly not desirable, depending on what you want to do.
If you want to "keep that info, while still allowing follow-up players to do the same" it might be desirable :-)
Depends whether you're talking about players on the same computer or not.
Your answer
![](https://koobas.hobune.stream/wayback/20220613111420im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
I cannot store data into PlayerPrefs after a certain amount of data 2 Answers
PlayerPrefsX - Is there a way to store values for the same key? 1 Answer
arrayPrefs playerPrefs 1 Answer
Store user details with PlayerPrefs 1 Answer
Is there a useful upper limit to the size of ArrayPrefs (PlayerPrefs) data? 1 Answer