Description
The ControlColor
field is a static, public field of type Color
within the Editor.ControlWidget
class. It represents the default color used for control widgets in the editor environment. This color is applied to the visual elements of the control widget, providing a consistent look and feel across the editor interface.
Usage
To use the ControlColor
field, you can directly access it through the Editor.ControlWidget
class since it is a static field. This allows you to retrieve or modify the default color used for control widgets globally across the editor.
Example usage:
// Accessing the default control color
Color defaultColor = Editor.ControlWidget.ControlColor;
// Setting a new default control color
Editor.ControlWidget.ControlColor = new Color(0.5f, 0.5f, 0.5f, 1.0f); // Sets a grey color
Example
// Accessing the default control color
Color defaultColor = Editor.ControlWidget.ControlColor;
// Setting a new default control color
Editor.ControlWidget.ControlColor = new Color(0.5f, 0.5f, 0.5f, 1.0f); // Sets a grey color