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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
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