Description
The ControlHighlightPrimary
field is a static, public field of type Color
within the Editor.ControlWidget
class. It represents the primary highlight color used for control widgets in the editor. This color is typically used to visually distinguish or emphasize certain controls when they are in a highlighted state, such as when they are selected or active.
Usage
To use the ControlHighlightPrimary
field, you can directly access it through the Editor.ControlWidget
class since it is a static field. You can use this field to get or set the primary highlight color for control widgets in your editor extensions or custom editor tools.
Example
// Example of accessing and setting the ControlHighlightPrimary field
// Get the current primary highlight color
Color currentHighlightColor = Editor.ControlWidget.ControlHighlightPrimary;
// Set a new primary highlight color
Editor.ControlWidget.ControlHighlightPrimary = new Color(0.5f, 0.8f, 0.2f, 1.0f); // RGBA color