Select your preferred scripting language. All code snippets will be displayed in this language.
Namespace: UnityEditor
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseThe DrawGizmo attribute allows you to supply a gizmo renderer for any Component.
At the moment you can only supply gizmo drawers for engine-components. All gizmo drawing methods need to be static.
DrawGizmo | Defines when the gizmo should be invoked for drawing. |