Class ResourceDragDropViewportInteraction

Handles dragging a resource into the scene.

Hierarchy (view full)

Constructors

Properties

_dragDropData: ResourceDragDropData
_isContinousDrop: boolean

Determines if the user did a drop operation and continues placing objects. This mode is entered when a drop happens while shift is pressed.

_sceneWindow: SceneWindow
onProjectEditorModuleDomainReload: (() => void)
viewportRenderer: UIViewportRenderer

The viewport this interaction controls.

wireframeRenderer: WireframeRenderer
kDefaultSceneObjectViewSpaceDistance: number

Accessors

  • get isDraggingResource(): boolean
  • Determines if a resource is currently being dragged.

    Returns boolean

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

    Returns ViewportCamera

Methods

  • Cancels the active resource drag.

    Returns void

  • Invoked when the user finished a resource drag.

    Returns void

  • Performs a drop of the active resource drag.

    Parameters

    Returns void

  • Enables the wireframe renderer.

    Returns void

  • Starts the resource drag for the specified drag data.

    Parameters

    Returns boolean

  • Updates the active resource drag.

    Parameters

    Returns void