API

Class WebXREnterExitUIButton

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

Index
  • 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

element: HTMLElement

button element

referenceSpaceType: XRReferenceSpaceType

Reference space type

sessionMode: XRSessionMode

XR initialization options for the button