Table of Contents

Class GizmoComponentAttribute

Namespace
Stride.Engine.Gizmos
Assembly
Stride.Engine.dll

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 Type

The type of component the related gizmo class is associated with.

isMainGizmo bool

Indicates 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

Type

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

bool

Remarks

Main gizmos will be entirely disposed instead of disabled if disabled in the gizmo settings