Class WebXREnterExitUIButton
Index
Constructors
constructor
-
new WebXREnterExitUIButton(
element: HTMLElement,
sessionMode: XRSessionMode,
referenceSpaceType: XRReferenceSpaceType,
): WebXREnterExitUIButtonCreates 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
Properties
element
element: HTMLElement
button element
reference Space Type
referenceSpaceType: XRReferenceSpaceType
Reference space type
session Mode
sessionMode: XRSessionMode
XR initialization options for the button
Methods
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
- activeButton: Nullable<WebXREnterExitUIButton>
Button which can be used to enter a different mode of XR