Search Issue Tracker
Fixed in 1.0.0-preview.16
Votes
9
Found in [Package]
1.0.0-preview.6
Issue ID
1284910
Regression
No
Mouse Enter Event is called every frame when moving another UI Element over the Mouse Enter Event area using Mouse Move Event
How to reproduce:
1. Open the attached "InputIssueRepro" project
2. Open the Scene "SampleScene"
3. Enter the Play Mode
4. Left-click and drag the green square inside the red square
Expected results: Only one "Red square Enter Area" message is logged in the Console
Actual results: The "Red squareEnter Area" message is logged every frame the mouse is moved inside the red square while holding the green square
Reproducible with: 1.0.0-preview.6 (2020.1.10f1, 2020.2.0b9)
Could not test with: 1.0.0-preview.1 and earlier (the script wouldn't work), 2020.1.0b11 and earlier (UI Toolkit package version was not yet introduced)
Notes:
- The issue is not reproducible when Active Input Handler is set to Input Manager (Old)
- Simply calling Mouse Move Event will not cause the Mouse Enter Event to trigger, only when actually dragging another object over the area will make the Mouse Enter Event to trigger
- The issue is with UI Element Events, does not reproduce with Event Handlers
Comments (2)
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
FizzFab
Mar 28, 2021 23:20
Any updates on when this might get fixed?
This issue is still present in the most recent UITK preview (preview 14 with Input System version 1.0.2 and Unity 2021.1.0f1) . It is a massive roadblock for using UITK in combination with the new Input System.
benlap
Jan 18, 2021 17:21
I'm noticing a similar behavior where the MouseLeaveEvent is being called simultaneously with every MouseMoveEvent.
Using: Unity 2020.2.0f1 + UI Toolkit