Class EditorPrefsUtils
Utilities for getting and setting values stored in EditorPrefs.
Inherited Members
Namespace: Unity.XR.CoreUtils.Editor
Assembly: solution.dll
Syntax
public static class EditorPrefsUtils
Remarks
The EditorPrefUtils
class caches any preference values retrieved or set using its methods.
Avoid accessing the same preference values using the EditorPrefs class directly.
Methods
Name | Description |
---|---|
ColorToColorPref(string, Color) | Encodes a Color object as a string. |
GetBool(string, bool, string) | Gets the bool value stored in the Editor preferences for the calling property. |
GetColor(string, Color, string) | Gets the color value stored in the Editor preferences for the calling property. |
GetFloat(string, float, string) | Gets the float value stored in the Editor preferences for the calling property. |
GetInt(string, int, string) | Gets the int value stored in the Editor preferences for the calling property. |
GetPrefKey(string, string) | Gets a standardized Editor preference key name. |
GetString(string, string, string) | Gets the string value stored in the Editor preferences for the calling property. |
PrefToColor(string) | Creates a Color object from a specially formatted string. |
SetBool(string, bool, string) | Stores the bool value in the Editor preferences for the calling property. |
SetColor(string, Color, string) | Stores the color value in the Editor preferences for the calling property. |
SetFloat(string, float, string) | Stores the float value in the Editor preferences for the calling property. |
SetInt(string, int, string) | Stores the int value in the Editor preferences for the calling property. |
SetString(string, string, string) | Stores the string value in the Editor preferences for the calling property. |