Search Issue Tracker
Fixed in 2021.3.35f1
Fixed in 2021.3.X, 2022.3.X, 2023.2.X, 2023.3.X, 2023.3.0b5
Votes
0
Found in
2020.3.41f1
2021.3.13f1
2022.1.22f1
2022.2.0b14
2023.1.0a18
2023.2.6f1
2023.3.0b3
Issue ID
UUM-20723
Regression
No
UI Toolkit VisualElement keeps firing mouse events after setting element visibility to Hidden if mouse wasn't moved
How to reproduce:
1. Open the attached “HiddenButtonEventsBug.zip” project
2. Open “SampleScene” scene
3. Enter Play Mode
4. Click on any button. Don't move the mouse after clicking
5. Open Console window and note the log message
6. Click again on the button without moving the mouse
7. Note the log message in the Console window
Expected result: Button disappears and another one appears in its place after clicking and Console prints clicked button
Actual result: Button disappears but Console Log prints another button as if it was still visible if the button is clicked without moving the mouse
Reproducible with: 1.0.0-preview.18 (2020.3.41f1), 2021.3.13f1, 2022.1.22f1, 2022.2.0b14, 2023.1.0a18
Reproduced on: macOS 12.6 (Intel)
Workaround: Behavior returns to normal if mouse is moved after the click
Note: Also reproducible in Build
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Add comment