player prefs unity code example
Example 1: playerprefs unity
int number = 18;
float decimal = 1.84f;
string word = "Jeff";
PlayerPrefs.SetInt("Age", number);
PlayerPrefs.SetFloat("Height", decimal);
PlayerPrefs.SetString("Name", word);
Debug.Log(PlayerPrefs.GetInt("Age"));
Debug.Log(PlayerPrefs.GetFloat("Height", 1.5));
Debug.Log(PlayerPrefs.GetString("Name"));
PlayerPrefs.DeleteKey("Height");
P layerPrefs.DeleteAll();
Example 2: playerprefs stored at unity
windows+R >> regedit >> HKEY_CURRENT_USER\SOFTWARE\Unity\UnityEditor\CompanyName\ProjectName