Immerse SDK
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

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:

  1. Replace the GraphicRaycaster with an XRGraphicRaycaster. You can do this using the context menu on the GraphicRaycaster component.
  2. Add an XRInputModule component to the EventSystem in the scene.

Event system

The XRInputModule includes additional fields for controlling haptic feedback during UI rollover and slider adjustments.