WebXRManagedOutputCanvas

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

Hierarchy

  • WebXRManagedOutputCanvas

Implements

Index

Constructors

Properties

Methods

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: Nullable<WebGLRenderingContext>

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

Methods

dispose

Find examples in Playground
  • dispose(): void

Generated using TypeDoc