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
Type | Name | Description |
---|---|---|
String | key | |
Boolean | defaultValue |
Returns
Type | Description |
---|---|
Boolean |
Get(String, Boolean)
Get the saved Boolean from the EditorPrefs.
Declaration
public static bool Get(string key, bool defaultValue)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
Boolean | defaultValue |
Returns
Type | Description |
---|---|
Boolean |
Get(String, Int32)
Get the saved Int32 from the EditorPrefs.
Declaration
public static int Get(string key, int defaultValue)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
Int32 | defaultValue |
Returns
Type | Description |
---|---|
Int32 |
Get(String, Int32)
Get the saved Int32 from the EditorPrefs.
Declaration
public static int Get(string key, int defaultValue)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
Int32 | defaultValue |
Returns
Type | Description |
---|---|
Int32 |
Get(String, Single)
Get the saved Single from the EditorPrefs.
Declaration
public static float Get(string key, float defaultValue)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
Single | defaultValue |
Returns
Type | Description |
---|---|
Single |
Get(String, Single)
Get the saved Single from the EditorPrefs.
Declaration
public static float Get(string key, float defaultValue)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
Single | defaultValue |
Returns
Type | Description |
---|---|
Single |
Get(String, String)
Get the saved String from theEditorPrefs.
Declaration
public static string Get(string key, string defaultValue)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
String | defaultValue |
Returns
Type | Description |
---|---|
String |
Get(String, String)
Get the saved String from theEditorPrefs.
Declaration
public static string Get(string key, string defaultValue)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
String | defaultValue |
Returns
Type | Description |
---|---|
String |
Set(String, Boolean)
Set the saved Boolean from to EditorPrefs.
Declaration
public static void Set(string key, bool value)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
Boolean | value |
Set(String, Boolean)
Set the saved Boolean from to EditorPrefs.
Declaration
public static void Set(string key, bool value)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
Boolean | value |
Set(String, Int32)
Set the saved Int32 from theEditorPrefs.
Declaration
public static void Set(string key, int value)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
Int32 | value |
Set(String, Int32)
Set the saved Int32 from theEditorPrefs.
Declaration
public static void Set(string key, int value)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
Int32 | value |
Set(String, Single)
Set the saved Single from the EditorPrefs.
Declaration
public static void Set(string key, float value)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
Single | value |
Set(String, Single)
Set the saved Single from the EditorPrefs.
Declaration
public static void Set(string key, float value)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
Single | value |
Set(String, String)
Set the saved String from to EditorPrefs.
Declaration
public static void Set(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
String | value |
Set(String, String)
Set the saved String from to EditorPrefs.
Declaration
public static void Set(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
String | key | |
String | value |