DrawGizmo Manual     Reference     Scripting  
Scripting > Editor Attributes > DrawGizmo
DrawGizmo Inherits from System.Attribute

The DrawGizmo attribute allows you to supply a gizmo renderer for any Component.

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

At the moment you can only supply gizmo drawers for engine-components. All gizmo drawing methods need to be static.

Constructors
DrawGizmo

Defines when the gizmo should be invoked for drawing.