Class WebXRManagedOutputCanvas
Implements
Constructors
constructor
-
new WebXRManagedOutputCanvas(
_xrSessionManager: WebXRSessionManager,
_options?: WebXRManagedOutputCanvasOptions,
): WebXRManagedOutputCanvasInitializes the canvas to be added/removed upon entering/exiting xr
Parameters
- _xrSessionManager: WebXRSessionManager
The XR Session manager
- _options: WebXRManagedOutputCanvasOptions = ...
optional configuration for this canvas output. defaults will be used if not provided
Returns WebXRManagedOutputCanvas
- _xrSessionManager: WebXRSessionManager
Properties
canvas Context
canvasContext: WebGL2RenderingContext
Rendering context of the canvas which can be used to display/mirror xr content
on XR Layer Init Observable
Observers registered here will be triggered when the xr layer was initialized
xr Layer
xrLayer: any = null
xr layer for the canvas
Creates a canvas that is added/removed from the webpage when entering/exiting XR