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
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Active Targets section text in Graph Inspector is truncated despite available space
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- Shader Graph Node information is briefly displayed in Graph Inspector when clicking on Category in the Blackboard
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
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.