PlayerPrefs
Class Functions
| SetInt |
Sets the value of the preference identified by key. |
| GetInt |
Returns the value corresponding to key in the preference file if it exists. |
| SetFloat |
Sets the value of the preference identified by key. |
| GetFloat |
Returns the value corresponding to key in the preference file if it exists. |
| SetString |
Sets the value of the preference identified by key. |
| GetString |
Returns the value corresponding to key in the preference file if it exists. |
| HasKey |
Returns true if key exists in the preferences. |
| DeleteKey |
Removes key and its corresponding value from the preferences. |
| DeleteAll |
Removes all keys and values from the preferences. Use with caution. |
| Save |
Writes all modified preferences to disk. |
官方英文文檔:
http://unity3d.com/support/documentation/ScriptReference/PlayerPrefs.html
Unity 中儲存或讀取數組的方法http://www.cocoachina.com/gamedev/gameengine/2011/0214/2651.html