- 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. - 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. - Expected Result
After scene switching, the ray state should be reset, and the Hover state of the UI should be automatically cancelled. - 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. - Affected Modules XR Origin (VR)
XR Interaction Toolkit
UI Toolkit
Scene Manager Scene Switching - Environmental Information
Unity Version: 【600.3.6f1】
XRI Version: 【3.3.1】
UI Toolkit Version: Built-in
Platform: 【Quest 3S】
Plugin: OpenXR - 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.



