Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebXREnterExitUI

UI to allow the user to enter/exit XR mode

Hierarchy

  • WebXREnterExitUI

Implements

Index

Constructors

constructor

  • Construct a new EnterExit UI class

    Parameters

    Returns WebXREnterExitUI

Properties

activeButtonChangedObservableSearch playground for activeButtonChangedObservable

activeButtonChangedObservable: Observable<Nullable<WebXREnterExitUIButton>>

Fired every time the active button is changed.

When xr is entered via a button that launches xr that button will be the callback parameter

When exiting xr the callback parameter will be null)

optionsSearch playground for options

version of the options passed to this UI

Readonly overlaySearch playground for overlay

overlay: HTMLDivElement

The HTML Div Element to which buttons are added.

Methods

disposeSearch playground for dispose

  • dispose(): void
  • Disposes of the XR UI component

    Returns void

setHelperAsyncSearch playground for setHelperAsync

  • Set the helper to be used with this UI component. The UI is bound to an experience helper. If not provided the UI can still be used but the events should be registered by the developer.

    Parameters

    Returns Promise<void>

    a promise that resolves when the ui is ready

Static CreateAsyncSearch playground for CreateAsync

  • Creates UI to allow the user to enter/exit XR mode

    Parameters

    Returns Promise<WebXREnterExitUI>

    the created ui

Legend

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