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
7000.0.0a1
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
- Find prefab components in scene is broken in new hierarchy
- Number "0" is not visible in Unity Documentation page button tooltips
- Selected Korean input text in UIToolkit TextField is not fully replaced when refocusing and entering new input
- [UITK Controls] Non text InputField can't be reset by API
- Control Scheme name field has no character limit, causing “Add Control Scheme” window to expand if name is too long
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.