The scene transition caused XRI ray status to remain, preventing the UI Toolkit UI from exiting Hover.




  1. Problem Description
    When developing a VR project using XR Origin (VR) + XR Interaction Toolkit + UI Toolkit, the issue of ray persistence occurs after switching scenes.
    The rays visually disappear / move to other places, but the UI still considers itself being illuminated by the rays, remaining permanently in the Hover state and unable to be cancelled or restored to normal.
  2. Reproduction Steps
    Create a VR scene, use XR Origin (VR) ray interaction
    Use UI Toolkit to create UI (UIDocument) in the scene
    Run the project, move the VR ray onto the UI to make the UI enter the Hover state
    Do not cancel the ray, directly switch to another scene
    After the scene switch, the ray has moved away, but the previously illuminated UI remains in the Hover state, and no matter how you move the ray, it cannot be relieved.
  3. Expected Result
    After scene switching, the ray state should be reset, and the Hover state of the UI should be automatically cancelled.
  4. Actual Result
    The UI is permanently stuck in the Hover state, and the rays seem to “remain on the UI”, even if the rays have disappeared or moved to other locations, the Hover state will not disappear.
  5. Affected Modules XR Origin (VR)
    XR Interaction Toolkit
    UI Toolkit
    Scene Manager Scene Switching
  6. Environmental Information
    Unity Version: 【600.3.6f1】
    XRI Version: 【3.3.1】
    UI Toolkit Version: Built-in
    Platform: 【Quest 3S】
    Plugin: OpenXR
  7. Additional Notes
    This issue results in the complete unavailability of the UI in VR, and the Hover state cannot be cleared. The scene must be restarted to restore it.