XRControllerComponent
XRControllerComponent(
props):ReactNode
Component for placing content in the controller anchored at a specific component such as the Thumbstick
props
object & RefAttributes<undefined | Object3D<Object3DEventMap>>
XRControllerGamepadComponentId Is the id of the component where content should be placed (e.g. "a-button")
Function Is an optional callback to receive when the component is pressed
Function Is an optional callback to receive when the component is released
ReactNode Children to be placed inside the componenent (e.g. visualizing a tooltip over the button...)
Returns
ReactNode