Class BuiltInInteractiveGizmoAbstract

The BuiltInInteractiveGizmo implements an abstract base class for all the built-in InteractiveGizmo types.

Hierarchy (view full)

Constructors

Properties

_isDragActive: boolean
_position: Vector3
_rotation: Quaternion

Accessors

  • get delta(): any
  • The delta of the current drag operation.

    Returns any

  • get isDragging(): boolean
  • Determines if the gizmo currently being interacted with (clicking, or dragging).

    Returns boolean

  • get isEnabled(): boolean
  • Determines the active state of the gizmo. If disabled, the gizmo will not render or receive input.

    Returns boolean

  • get isHovering(): boolean
  • Determines if the gizmo currently being hovered.

    Returns boolean

Methods

  • Destroy the interactive gizmo and registered slider gizmos.

    Returns void

  • Selects the right color for the gizmo, if another gizmo is hovered the gizmo will be grayed out.

    Parameters

    Returns Color

  • Virtual

    Called every frame after handle input is processed. Active handle sliders should contain values signals if and how much they were dragged.

    Parameters

    Returns void

    Implementing classes must call super

  • Virtual

    Called every frame before interactive gizmo input is processed. Allows interactive gizmo transforms to be updated before input.

    Parameters

    Returns any

Events

onDragStart: Event<any[], void>

Invoked when a drag is started and a new delta is available.

The onDrag event is invoked right after this event. Do not integrate the current delta during this event.

onDrag: Event<any[], void>

Invoked when a drag is performed and a new delta is available.

onDragFinished: Event<any[], void>

Invoked when the drag finished.