Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2019.4
2019.4.22f1
2020.3
2021.1
2021.2
Issue ID
1323383
Regression
No
Prefabs with a script do not show up in the object picker when the field type is of the same script
How to reproduce:
1. Open the attached project "Prefab Variant Not Found In Asset Options.zip"
2. Open "SampleScene" scene (in "Scenes" folder)
3. Select "Reference Shows no Asset Options in Assets" GameObject in the Hierarchy
4. Open asset picker window for the "TargetMono" field in the Inspector
Expected result: Prefabs with "TargetMono" script show up
Actual result: No assets show up
Reproducible with - 2018.4.33f1, 2019.4.24f1, 2020.3.5f1, 2021.1.4f1, 2021.2.0a14
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
This has never been possible. You can only search for component types in the Scene hierarchy because here the entire Prefab is loaded into memory. If searching for Prefab Assets in the Project with a specific component type it would require all Prefab Assets to be loaded into memory.
That said: The search engine is currently being improved so it will be possible in the future. See https://docs.unity3d.com/Packages/com.unity.quicksearch@3.0/manual/index.html