Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • WebXRManagedOutputCanvas

Implements

Index

Constructors

Properties

canvasContext: WebGLRenderingContext

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

onXRLayerInitObservable: Observable<XRWebGLLayer>

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

xr layer for the canvas

Methods

  • dispose(): void
  • Disposes of the object

    Returns void

  • 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
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme