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?

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