Class EditorPreferences
Convenience class for setting Editor Preferences with Application.productName as key prefix.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Utilities.Editor
Assembly: cs.temp.dll.dll
Syntax
public static class EditorPreferences
Methods
Get(String, Boolean)
Get the saved Boolean from the EditorPrefs.
Declaration
public static bool Get(string key, bool defaultValue)
Parameters
Returns
Type | Description |
---|---|
Boolean |
Get(String, Int32)
Get the saved Int32 from the EditorPrefs.
Declaration
public static int Get(string key, int defaultValue)
Parameters
Returns
Type | Description |
---|---|
Int32 |
Get(String, Single)
Get the saved Single from the EditorPrefs.
Declaration
public static float Get(string key, float defaultValue)
Parameters
Returns
Type | Description |
---|---|
Single |
Get(String, String)
Get the saved String from theEditorPrefs.
Declaration
public static string Get(string key, string defaultValue)
Parameters
Returns
Type | Description |
---|---|
String |
Set(String, Boolean)
Set the saved Boolean from to EditorPrefs.
Declaration
public static void Set(string key, bool value)
Parameters
Set(String, Int32)
Set the saved Int32 from theEditorPrefs.
Declaration
public static void Set(string key, int value)
Parameters
Set(String, Single)
Set the saved Single from the EditorPrefs.
Declaration
public static void Set(string key, float value)
Parameters
Set(String, String)
Set the saved String from to EditorPrefs.
Declaration
public static void Set(string key, string value)