C# Class UnityEditor.DrawGizmo

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

Inheritance: System.Attribute
显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Properties

Property Type Description
drawOptions GizmoType
drawnType System.Type

Public Methods

Method Description
DrawGizmo ( GizmoType gizmo ) : System

Defines when the gizmo should be invoked for drawing.

DrawGizmo ( GizmoType gizmo, Type drawnGizmoType ) : System

Same as above. drawnGizmoType determines of what type the object we are drawing the gizmo of has to be.

Method Details

DrawGizmo() public method

Defines when the gizmo should be invoked for drawing.

public DrawGizmo ( GizmoType gizmo ) : System
gizmo GizmoType Flags to denote when the gizmo should be drawn.
return System

DrawGizmo() public method

Same as above. drawnGizmoType determines of what type the object we are drawing the gizmo of has to be.

public DrawGizmo ( GizmoType gizmo, Type drawnGizmoType ) : System
gizmo GizmoType Flags to denote when the gizmo should be drawn.
drawnGizmoType System.Type Type of object for which the gizmo should be drawn.
return System

Property Details

drawOptions public_oe property

public GizmoType drawOptions
return GizmoType

drawnType public_oe property

public Type,System drawnType
return System.Type