RSX Code Reference
    Preparing search index...

    Class DragSelectionViewportInteraction

    Selecting objects by spanning a rectangle over them.

    Hierarchy (View Summary)

    Index
    viewportRenderer: UIViewportRenderer

    The viewport this interaction controls.

    • get isAvailable(): boolean
      Virtual

      Determines if the interaction is available.

      Returns boolean

      If the interaction is not available, no events will be forwarded to it. This property allows interactions to determines if all the dependencies are availble for it to execute.

    • 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

    • 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 SceneObject[]