Method RegisterPreferenceColor
RegisterPreferenceColor(string, Color)
Adds a UnityEditor.PrefColor into the Preferences > Colors panel./>
Declaration
public static Func<Color> RegisterPreferenceColor(string name, Color defaultColor)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name the color has in the Colors panel. This is in the format of 'group/name'. |
| Color | defaultColor | The initial color to use for the new entry in the Colors panel. This is also the value Unity uses when it resets the colors to their defaults. |
Returns
| Type | Description |
|---|---|
| Func<Color> |