PlayerPrefs
Class Functions
SetInt | Sets the value of the preference identified by |
GetInt | Returns the value corresponding to |
SetFloat | Sets the value of the preference identified by |
GetFloat | Returns the value corresponding to |
SetString | Sets the value of the preference identified by |
GetString | Returns the value corresponding to |
HasKey | Returns true if |
DeleteKey | Removes |
DeleteAll | Removes all keys and values from the preferences. Use with caution. |
Save | Writes all modified preferences to disk. |
官方英文文档:
Unity 中保存或读取数组的方法
http://www.cocoachina.com/gamedev/gameengine/2011/0214/2651.html