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
- Frame Debugger does not display individual Draw Calls in the Game view or the Player when using Camera Stacking
- Audio Source does not output audio when using 3rd party plugin for Text-to-Speach
- [Ubuntu 24]Layout window size is rest when reopening the Project
- [Ubuntu 24]Cannot resize Editor window with the arrows on the side
- [Android] VideoPlayer does not resume playing when the app has recovered after lagging
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