WebXRManagedOutputCanvas

Creates a canvas that is added/removed from the webpage when entering/exiting XR

Hierarchy

  • WebXRManagedOutputCanvas

Implements

Index

Constructors

constructor

Find examples in Playground

Properties

canvasContext

Find examples in Playground
canvasContext: WebGLRenderingContext

Rendering context of the canvas which can be used to display/mirror xr content

onXRLayerInitObservable

Find examples in Playground
onXRLayerInitObservable: Observable<XRWebGLLayer>

Obseervers registered here will be triggered when the xr layer was initialized

xrLayer

Find examples in Playground

xr layer for the canvas

Methods

dispose

Find examples in Playground
  • dispose(): void

initializeXRLayerAsync

Find examples in Playground

Generated using TypeDoc