Class WebXRManagedOutputCanvas
Hierarchy
- WebXRManagedOutputCanvas
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
-
Initializes the canvas to be added/removed upon entering/exiting xr
Parameters
-
_xrSessionManager: WebXRSessionManager
The XR Session manager
-
Optional _options: WebXRManagedOutputCanvasOptions
optional configuration for this canvas output. defaults will be used if not provided
Returns WebXRManagedOutputCanvas
-
Properties
canvas ContextSearch playground for canvasContext
Rendering context of the canvas which can be used to display/mirror xr content
onXRLayer Init ObservableSearch playground for onXRLayerInitObservable
Obseervers registered here will be triggered when the xr layer was initialized
xr LayerSearch playground for xrLayer
xr layer for the canvas
Methods
disposeSearch playground for dispose
-
Disposes of the object
Returns void
initializeXRLayer AsyncSearch playground for initializeXRLayerAsync
-
Initializes the xr layer for the session
Parameters
-
xrSession: XRSession
xr session
Returns Promise<XRWebGLLayer>
a promise that will resolve once the XR Layer has been created
-
Creates a canvas that is added/removed from the webpage when entering/exiting XR