Skip to main content

Interface: SceneExtPrototype

Patch.SceneExtPrototype

Represents the prototype for extending Scene functionality.

Properties

blurOnClickOut

blurOnClickOut: boolean

A flag indicating whether to blur the focused Object3D when clicking outside of any object.

Defined in

src/patch/Scene.ts:37


continuousRaycasting

continuousRaycasting: boolean

A flag indicating whether continuous raycasting is enabled (default: false). When set to true, main raycasting occurs every frame, while false triggers raycasting only upon mouse movement. Additionally, if set to true, the 'pointerintersection' event will be fired every frame.

Defined in

src/patch/Scene.ts:21


continuousRaycastingDropTarget

continuousRaycastingDropTarget: boolean

A flag indicating whether continuous raycasting is enabled when searching for drop targets (default: false). When set to true, main raycasting for drop targets occurs every frame, while false triggers it only upon mouse movement. Additionally, if set to true, the 'dragover' event will be fired every frame.

Defined in

src/patch/Scene.ts:27


focusedObject

focusedObject: Object3D<Object3DEventMap>

A reference to the currently focused Object3D within the scene.

Defined in

src/patch/Scene.ts:33


intersections

intersections: IntersectionExt[]

An array of intersections computed from the pointer (primary pointer only).

Defined in

src/patch/Scene.ts:29


intersectionsDropTarget

intersectionsDropTarget: IntersectionExt[]

An array of intersections computed from the pointer if an object is dragged and has 'findDropTarget' set to true (primary pointer only).

Defined in

src/patch/Scene.ts:31


timeScale

timeScale: number

The time scale for scene animations.

Defined in

src/patch/Scene.ts:39


totalTime

totalTime: number

The total time elapsed in the scene.

Defined in

src/patch/Scene.ts:41

Methods

activeSmartRendering

activeSmartRendering(): SceneExtPrototype

Activates smart rendering for the scene.

Returns

SceneExtPrototype

The updated instance of the scene.

Defined in

src/patch/Scene.ts:46


focus

focus(target?): void

Sets the focus to the specified Object3D within the scene, or clears the focus if no target is provided.

Parameters

NameTypeDescription
target?Object3D<Object3DEventMap>Optional. The Object3D to focus on. If not provided, the focus is cleared.

Returns

void

Defined in

src/patch/Scene.ts:51