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
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
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
focusedObject
• focusedObject: Object3D
<Object3DEventMap
>
A reference to the currently focused Object3D within the scene.
Defined in
intersections
• intersections: IntersectionExt
[]
An array of intersections computed from the pointer (primary pointer only).
Defined in
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
timeScale
• timeScale: number
The time scale for scene animations.
Defined in
totalTime
• totalTime: number
The total time elapsed in the scene.
Defined in
Methods
activeSmartRendering
▸ activeSmartRendering(): SceneExtPrototype
Activates smart rendering for the scene.
Returns
The updated instance of the scene.
Defined in
focus
▸ focus(target?
): void
Sets the focus to the specified Object3D within the scene, or clears the focus if no target is provided.
Parameters
Name | Type | Description |
---|---|---|
target? | Object3D <Object3DEventMap > | Optional. The Object3D to focus on. If not provided, the focus is cleared. |
Returns
void