Class GizmoComponentAttribute
Specifies for which component the associated gizmo class is.
public class GizmoComponentAttribute : Attribute
- Inheritance
-
GizmoComponentAttribute
- Inherited Members
Constructors
GizmoComponentAttribute(Type, bool)
Initializes a new instance of the GizmoComponentAttribute class.
public GizmoComponentAttribute(Type componentType, bool isMainGizmo)
Parameters
componentType
TypeThe type of component the related gizmo class is associated with.
isMainGizmo
boolIndicates whether this gizmo is a main gizmo.
Properties
ComponentType
Gets or sets the type of component the related gizmo class is associated with.
public Type ComponentType { get; set; }
Property Value
IsMainGizmo
Gets or sets whether this gizmo is a main gizmo. An entity will display only one of its main gizmo, corresponding to the component that has the highest priority set in its DisplayAttribute.
public bool IsMainGizmo { get; set; }
Property Value
Remarks
Main gizmos will be entirely disposed instead of disabled if disabled in the gizmo settings