Class EditorPrefs
Assembly: UnityEditor.dll
Syntax
public sealed class EditorPrefs
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
GetBool(String)
Declaration
public static bool GetBool(string key)
Parameters
Type |
Name |
Description |
String |
key |
|
Returns
GetBool(String, Boolean)
Declaration
public static bool GetBool(string key, [DefaultValue("false")] bool defaultValue)
Parameters
Returns
|
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, [DefaultValue("0.0F")] 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, [DefaultValue("0")] 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, [DefaultValue("\"\"")] string defaultValue)
Parameters
Returns
HasKey(String)
Declaration
public static bool HasKey(string key)
Parameters
Type |
Name |
Description |
String |
key |
|
Returns
|
Improve this Doc
View Source
SetBool(String, Boolean)
Declaration
public static void SetBool(string key, bool value)
Parameters
|
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