UI
The interaction package enables UI interaction in XR applications using pointers projected from the controllers. The included avatar is pre-configured for this system with the AvatarUiInput
component.
To make UI elements interactable for an XR avatar, follow these steps:
- Replace the GraphicRaycaster with an
XRGraphicRaycaster
. You can do this using the context menu on theGraphicRaycaster
component. - Add an
XRInputModule
component to theEventSystem
in the scene.
The XRInputModule
includes additional fields for controlling haptic feedback during UI rollover and slider adjustments.