Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebXREnterExitUIButton

Button which can be used to enter a different mode of XR

Hierarchy

  • WebXREnterExitUIButton

Index

Constructors

Properties

Methods

Constructors

constructor

  • Creates a WebXREnterExitUIButton

    Parameters

    • element: HTMLElement

      button element

    • sessionMode: XRSessionMode

      XR initialization session mode

    • referenceSpaceType: XRReferenceSpaceType

      the type of reference space to be used

    Returns WebXREnterExitUIButton

Properties

elementSearch playground for element

element: HTMLElement

button element

referenceSpaceTypeSearch playground for referenceSpaceType

referenceSpaceType: XRReferenceSpaceType

Reference space type

sessionModeSearch playground for sessionMode

sessionMode: XRSessionMode

XR initialization options for the button

Methods

updateSearch playground for update

  • Extendable function which can be used to update the button's visuals when the state changes

    Parameters

    Returns void

Legend

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