Color Color { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Color property of the EditorHandleAttribute class specifies the color of the handle sprite that is drawn in the editor for a game object. This property allows developers to customize the appearance of the handle, making it easier to identify and differentiate between various components in the scene view.

Usage

To use the Color property, apply the EditorHandleAttribute to a component and set the Color property to the desired Color value. This will change the color of the handle sprite associated with the component in the editor.

Example

[EditorHandle(Color = Color.Red)]
public class MyComponent : Component
{
    // Component implementation
}