|
void | DeleteAll () |
| Removes all keys and values from PlayerPrefs. Use with caution.
|
|
void | DeleteKey (string key) |
| Removes key and its corresponding value from PlayerPrefs.
|
|
Object | GetAssetAtPath (string key) |
| Loads the resource at the path specified in the value associated with this key, from prefBase. Behind the scenes, the values are stored as a path (string), and looked up using the Unity Resources class.
|
|
float | GetFloat (string key) |
| Returns the value corresponding to key in the preference file if it exists in PlayerPrefs.
|
|
int | GetInt (string key) |
| Returns the value corresponding to key in the preference file if it exists in PlayerPrefs.
|
|
delegate string | GetObjectPathEditorCallback (Object value) |
| The delegate specified the function signature of the function the editor put into the editorAdapterVersion member, when the editor is present.
|
|
string | GetString (string key) |
| Returns the value corresponding to key in the preference file if it exists in PlayerPrefs.
|
|
bool | HasKey (string key) |
| Returns true if key exists in PlayerPrefs.
|
|
void | Save () |
| Writes all modified PlayerPrefs to disk. Note: PlayerPrefs are automatically saved by Unity onApplicationQuit.
|
|
void | SetAssetPath (string key, Object value) |
| PlayerPrefs cannot determine the resource path of an object reference. In the final build, use the SetPreFabPath version that takes a string for the second parameter, to manually assign the path of the resource." When running in the editor, it will attempt to find the objects path using UnityEditor.AssetDatabase.GetAssetPath.
|
|
void | SetAssetPath (string key, string path) |
| PlayerPrefs cannot determine the path of an object. Uses SetString, with the same key, to manually provide the path of the resource."
|
|
void | SetFloat (string key, float value) |
| Sets the value of the preference identified by key to the provided value in PlayerPrefs.
|
|
void | SetInt (string key, int value) |
| Sets the value of the preference identified by key to the provided value in PlayerPrefs.
|
|
void | SetString (string key, string value) |
| Sets the value of the preference identified by key to the provided value in PlayerPrefs.
|
|