Class WebXREnterExitUIButton
Hierarchy
- WebXREnterExitUIButton
Index
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
button element
reference Space TypeSearch playground for referenceSpaceType
Reference space type
session ModeSearch playground for sessionMode
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
activeButton: Nullable<WebXREnterExitUIButton>
the current active button in the UI
Returns void
Button which can be used to enter a different mode of XR