Class DragSelectionViewportInteraction

Selecting objects by spanning a rectangle over them.

Hierarchy (view full)

Constructors

Properties

viewportRenderer: UIViewportRenderer

The viewport this interaction controls.

Accessors

  • get isDragSelectionActive(): boolean
  • Determines if the drag selection is active and engaging with the scene as the primary input mode.

    Returns boolean

  • get viewportCamera(): ViewportCamera
  • The ViewportCamera the interaction controls.

    Returns ViewportCamera

Methods

  • Performs the selection based on the specified region. The region is defined by the AABB that encapuslates regionPointA and regionPointB.

    Parameters

    • regionPointA: Immutable<Vector2>
    • regionPointB: Immutable<Vector2>
    • allowCacheUpdate: boolean

      Determines if the cached object texture can be updated in a blocking call.

    Returns void