RSX Code Reference
    Preparing search index...
    • rsx
    • Editor
    • ResourceDragDropViewportInteraction

    Class ResourceDragDropViewportInteraction

    Handles dragging a resource into the scene.

    Hierarchy (View Summary)

    Index
    _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
    • 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 isDraggingResource(): boolean

      Determines if a resource is currently being dragged.

      Returns boolean

    • get viewportCamera(): ViewportCamera

      The ViewportCamera the interaction controls.

      Returns ViewportCamera

    • 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

    • Updates the active resource drag.

      Parameters

      Returns void