Class PlayerPrefs
Assembly: UnityEngine.dll
Syntax
Methods
DeleteAll()
Declaration
public static void DeleteAll()
DeleteKey(String)
Declaration
public static void DeleteKey(string key)
Parameters
Type |
Name |
Description |
String |
key |
|
|
Improve this Doc
View Source
GetFloat(String)
Declaration
public static float GetFloat(string key)
Parameters
Type |
Name |
Description |
String |
key |
|
Returns
GetFloat(String, Single)
Declaration
public static float GetFloat(string key, float defaultValue)
Parameters
Returns
|
Improve this Doc
View Source
GetInt(String)
Declaration
public static int GetInt(string key)
Parameters
Type |
Name |
Description |
String |
key |
|
Returns
GetInt(String, Int32)
Declaration
public static int GetInt(string key, int defaultValue)
Parameters
Returns
|
Improve this Doc
View Source
GetString(String)
Declaration
public static string GetString(string key)
Parameters
Type |
Name |
Description |
String |
key |
|
Returns
GetString(String, String)
Declaration
public static string GetString(string key, string defaultValue)
Parameters
Returns
HasKey(String)
Declaration
public static bool HasKey(string key)
Parameters
Type |
Name |
Description |
String |
key |
|
Returns
Save()
Declaration
public static void Save()
|
Improve this Doc
View Source
SetFloat(String, Single)
Declaration
public static void SetFloat(string key, float value)
Parameters
|
Improve this Doc
View Source
SetInt(String, Int32)
Declaration
public static void SetInt(string key, int value)
Parameters
|
Improve this Doc
View Source
SetString(String, String)
Declaration
public static void SetString(string key, string value)
Parameters
Extension Methods