- Home /
Question by
Abacab · Mar 20, 2015 at 02:19 PM ·
c#playerprefs
Playerprefs Nickname
Hello!
I'd want the player to type in a nickname that will be used on the leaderboards when he/she first opens the game.
How to do that?
Comment
Best Answer
Answer by UNZoOM · Mar 20, 2015 at 03:02 PM
Scene 1 :
Login Scene
Enter your nickname : ___
Store the value of this textField like so ,
Say your textField is txtField_Nick;
PlayerPrefs.SetString("NickName", txtField_Nick.text); // Store
Scene 2 :
Game scene
Read the nick like so,
PlayerPrefs.GetString("NickName") ; // Retrieve
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Differences between mobile save/load data 1 Answer
How to save different values with same script? 1 Answer
C# How To Save PlayerPrefs for Unity GUI 2 Answers