Search Issue Tracker
By Design
Votes
0
Found in
2019.2.0a1
2019.2.0b6
2019.3.0a1
Issue ID
1164455
Regression
Yes
[UIElements]Mouse events cannot be taken out of VisualElement.layout when using transform
How to reproduce:
1. Open user-supplied project
2. Open "BugReport" from the Menu tab > TransformBoundWindow
3. Move the mouse inside layout and try to go on the green layout
Expected result: Mouse moves all around the "Bounding Box"
Actual result: Mouse events cannot be taken outside the brown square (VisualElement.layout)
Reproducible with: 2019.2.0b6, 2019.3.0a6
Not reproducable with: 2017.4.29f1, 2018.4.2f1, 2019.1.7f1
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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Resolution Note (2019.3.X):
The problem reported happens because of a picking optimization which limits picking to the bounding box of the visual element (the union of the element enclosing rect and all of its children bounding box).
It worked in previous versions because the user is overriding ContainsPoint() so that it returns true outside the element enclosing rect. However, it now never gets called because we use bounding boxes as a first test for picking. This test is not overridable by users.
Since the user wants to draw and pick outside the MyIMGUIContainer element, I suggest this element be made as large as the enclosing window.