Search Issue Tracker
By Design
Votes
0
Found in
6000.0.51f1
6000.1.7f1
6000.2.0b5
6000.3.0a1
Issue ID
UUM-109145
Regression
No
Element blocks another element when it is set to PickingMode.Ignore
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/OutdoorsScene.unity” Scene
3. Enter the Play Mode
4. Press the “Tab“ key
5. Try clicking on items in the inventory
Expected result: All items in the inventory can be selected
Actual result: Items on the right side of the inventory can’t be selected
Reproducible with: 6000.0.51f1, 6000.1.7f1, 6000.2.0b5
Could not test with: 2022.3.63f1 (Assets\UI\ELEMENTS\BarElement.cs(5,2): error CS0246: The type or namespace name 'UxmlElementAttribute' could not be found)
Reproducible on:
Play Mode
Windows Standalone Player
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Notes:
- After pressing the “ESC“ key and selecting “Settings“, the opened settings tab covers the right side of the inventory, thus items there can’t be clicked even when PickingMode.Ignore is set
- Does not reproduce with other elements
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
- "Customize handled extensions" part in the External Tools settings tab is not aligned with other properties
- Editor Diagnostics foldouts do not open when clicked on the foldout title
- [UI Builder] Visual Elements are not placed at the mouse cursor position when Absolute Position Placement is enabled
- "Width" and "Height" text is misaligned with slider ends in Screen Match Mode Parameters section of Panel Settings Asset
- Editor does not quit when Editor is not in focus and any floating window is opened
Resolution Note:
The element that's blocked is effectively blocked by another element that has PickingMode.Position, which is exactly what it's supposed to do. The reason there is such an element in the scene is explained below.
In the repro project, there are elements with PickingMode.Position in the SettingsGroup hierarchy.
In the SetGroupEnabled method, you do
```
element.pickingMode = PickingMode.Ignore;
foreach (var item in element.Children())
{
SetGroupEnabled(item, false);
}
```
. However, you need to use
```
foreach (var item in element.hierarchy.Children())
```
instead. Otherwise, you're skipping over the contentContainer shortcuts in the visual element hierarchy, specifically for the ScrollView element.