Unity3D
Unity3D techniques
Showing posts with label
Save Data
.
Show all posts
Showing posts with label
Save Data
.
Show all posts
Wednesday, September 17, 2014
Persistent Storage
PlayerPrefs
Set Value:
PlayerPrefs.SetInt("HighScore", score);
Get Value:
PlayerPrefs.GetInt("HighScore");
Clear Data:
PlayerPrefs.DeleteKey("HighScore");
PlayerPrefs.DeleteAll();
For details:
https://docs.unity3d.com/ScriptReference/PlayerPrefs.html
Older Posts
Home
Subscribe to:
Posts (Atom)