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
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
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.