Unity3D
Unity3D techniques
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
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment