Class UtilityLayerRenderer
Implements
Constructors
constructor
-
new UtilityLayerRenderer(
originalScene: Scene,
handleEvents?: boolean,
manualRender?: boolean,
): UtilityLayerRendererInstantiates a UtilityLayerRenderer
Parameters
- originalScene: Scene
the original scene that will be rendered on top of
- handleEvents: boolean = true
boolean indicating if the utility layer should handle events
- manualRender: boolean = false
boolean indicating if the utility layer should render manually.
Returns UtilityLayerRenderer
- originalScene: Scene
Properties
Readonlyhandle Events
boolean indicating if the utility layer should handle events
main Scene Tracker Predicate
Gets or sets a predicate that will be used to indicate utility meshes present in the main scene
only Check Pointer Down Events
If set to true, only pointer down onPointerObservable events will be blocked when picking is occluded by original scene
on Pointer Out Observable
Observable raised when the pointer moves from the utility layer scene to the main scene
original Scene
the original scene that will be rendered on top of
picking Enabled
Set to false to disable picking
pick Utility Scene First
If the picking should be done on the utility layer prior to the actual scene (Default: true)
process All Events
If set to false, only pointerUp, pointerDown and pointerMove will be sent to the utilityLayerScene (false by default)
should Render
If the utility layer should automatically be rendered on top of existing scene
utility Layer Scene
The scene that is rendered on top of the original scene
Accessors
StaticDefault Keep Depth Utility Layer
-
A shared utility layer that can be used to embed objects into a scene (Depth map of the previous scene is not cleared before drawing on top of it)
Returns UtilityLayerRenderer
StaticDefault Utility Layer
-
A shared utility layer that can be used to overlay objects into a scene (Depth map of the previous scene is cleared before drawing on top of it)
Returns UtilityLayerRenderer
Methods
dispose
-
Disposes of the renderer
Returns void
get Render Camera
-
Gets the camera that is used to render the utility layer (when not set, this will be the last active camera)
Parameters
OptionalgetRigParentIfPossible: booleanif the current active camera is a rig camera, should its parent camera be returned
Returns Camera
the camera that is used when rendering the utility layer
render
-
Renders the utility layers scene on top of the original scene
Returns void
Renders a layer on top of an existing scene