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
  • Initializes the canvas to be added/removed upon entering/exiting xr

    Parameters

    • helper: WebXRExperienceHelper

      the xr experience helper used to trigger adding/removing of the canvas

    • Optional canvas: HTMLCanvasElement

      The canvas to be added/removed (If not specified a full screen canvas will be created)

    Returns WebXRManagedOutputCanvas

Properties

canvasContext

Find examples in Playground
canvasContext: WebGLRenderingContext

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

xrLayer

Find examples in Playground

xr layer for the canvas

Methods

dispose

Find examples in Playground
  • dispose(): void

initializeXRLayerAsync

Find examples in Playground
  • initializeXRLayerAsync(xrSession: any): any
  • Initializes the xr layer for the session

    Parameters

    • xrSession: any

      xr session

    Returns any

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

Generated using TypeDoc