Search Issue Tracker
Fixed
Fixed in 2021.3.40f1, 2022.3.38f1, 6000.0.11f1, 7000.0.0a2
Votes
0
Found in
2021.3.36f1
2022.3.21f1
2023.2.13f1
2023.3.0b10
6000.0.0b11
6000.1.0a7
Issue ID
UUM-65462
Regression
No
SearchContext Attribute does not work when used with arrays
How to reproduce:
1. Open the attached “array.zip” project
2. Open “SampleScene” Scene (Assets > Scenes)
3. In the Hierarchy window, select “Cube” GameObject
4. In the Inspector window, observe the Elements list of the “New Behaviour Script” Component
Expected result: List elements are “None (GameObject)”
Actual result: List elements are “None (GameObject[])”
Reproducible with: 2021.3.36f1, 2022.3.21f1, 2023.2.13f1, 2023.3.0b10
Reproduced on: macOS 14.2.1 (Intel)
Not reproducible on: No other environment tested
Note: It is not reproducible if the advanced search engine is used and the filters are added by hand. Unfortunately, this does not allow to restrict the object selection, which could be defined by the query of the SearchContext attribute
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
- Reflection Probe “Probe Scene Editing Mode:” text is barely visible
- [HDRP] Game view doesn’t refresh after changing Camera Background Type until mouse moves over it
- Some Shaders appear twice in Material Shader selection menu
- Editor freezes with a StackOverflowException when certain asset types are assigned to a managed component in a SubScene via AddComponentObject
- Text Script Importer Reference button links to a Missing Page when clicking the Reference Button in the Inspector
Resolution Note (fix version 7000.0.0a2):
Search: SearchContext attribute now works with arrays and lists.
Resolution Note (fix version 6000.0.11f1):
Search: SearchContext attribute now works with arrays and lists.
Resolution Note (fix version 2021.3.40f1):
Search: SearchContext attribute now works with arrays and lists.