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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
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.