Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebXRManagedOutputCanvas

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

Hierarchy

  • WebXRManagedOutputCanvas

Implements

Index

Constructors

constructor

Properties

canvasContextSearch playground for canvasContext

canvasContext: WebGLRenderingContext

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

onXRLayerInitObservableSearch playground for onXRLayerInitObservable

onXRLayerInitObservable: Observable<XRWebGLLayer>

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

xrLayerSearch playground for xrLayer

xr layer for the canvas

Methods

disposeSearch playground for dispose

  • dispose(): void
  • Disposes of the object

    Returns void

initializeXRLayerAsyncSearch playground for initializeXRLayerAsync

  • Initializes a XRWebGLLayer to be used as the session's baseLayer.

    Parameters

    Returns Promise<XRWebGLLayer>

    a promise that will resolve once the XR Layer has been created

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method