Search Issue Tracker
Fixed
Fixed in 2.6.4, 3.0.7
Votes
0
Found in [Package]
2.6.3
3.0.6
Issue ID
XRIT-203
Regression
No
Mouse and Pointer Events are called incorrectly in ScrollView with XRUIInputModule
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Scenes/SampleScene” Scene
3. Enter the Play Mode
4. Hover over a button in the Game View
5. Observe the Console window
Expected result: Only “OnPointerEnter” and “OnMouseEnter” events are called
Actual result: “OnMouseEnter” is not called and both “OnPointerLeave” and “OnMouseLeave” events are called
Reproducible with: 2023.2.11f1, 2023.2.20f1, 6000.0.26f1, 6000.1.0a3
Not reproducible with: 2021.3.45f1, 2022.3.52f1, 2023.2.10f1
Reproducible on: Windows 10
Not reproducible on: No other environment tested
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note (fix version 3.0.7):
When using UI Toolkit, typically it will install an event listener in the form of the `PanelEventHandler` component which intercepts events from the `XRUIInputModule`. However, the `XRUIInputModule` currently does not support sending UI Toolkit events from the Event System on behalf of the XRUIInputModule.
Instead, `EventSystem.SetUITookitEventSystemOverride` can be called to bypass this default mechanism when it becomes the current/activated Input Module by the `EventSystem`.
You can activate this function via the Unity Editor in the XR UI Input Module called **Bypass UI Toolkit Events**.
Resolution Note (fix version 2.6.4):
Added an optional bypass for UI Toolkit events that may cause incorrect events to get sent to UI Toolkit elements such as scroll views.
Bug does not occur using Unity 2022.3.62f1 after editing Package Manifest to use XRI 2.6.4 then updating Starter Assets XRI package sample.