The ScenePicking.
The ViewportCamera the interaction controls.
The ViewportRendererData used with this interaction.
Virtual
Called when the editor window is being destroyed.
Virtual
Called when the mode is being deactivated.
Virtual
Called when the editor updates.
Virtual
Called when the mode is activated.
Virtual
Called on all modes when currently active mode is changed.
StaticstartStarts a temporary picking action in the viewportRenderer.
When a pick occured, the onPicked callback is invoked with the picking data with the picking data
which may contain a null SceneObject when pick was made on a non pickable object or void.
The picking exits if the onPicked callback returns false, or the sceneSelection changed.
The name of the action that requires the picking.
The viewport renderer to pick from.
The scene selection to observe when another object is selected.
Invoked when a mouse event occured. Return true to continue opicking, false to exit picking.
OptionalonAbort: () => void
Invoked when the picking was aborted, due to a change of the selection.
A viewport interaction that uses
ScenePickingto pick a position in the viewport and signal an event. The interaction will signal the event on first left mouse button press and provide updates as long as the user moves the mouse with the button pressed. The user should unset the interaction manually on mouse up and call 'Destroy' to dispose the interaction if it's used as a one-stop interaction.