Search Issue Tracker
By Design
Votes
0
Found in
2017.4.0f1
2018.2.0f2
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.3.0a1
Issue ID
1128295
Regression
No
Can't assign a prefab to a public field through the asset selection dialog when it has a class derived from the referencer
Repro steps:
1. Open user attached project
2. Open scene "SmallSpritesScene"
3. Select "MainClassReferencer" GameObject in the Hierarchy
4. Press the dot near the "Main Class Prefab" field to select an asset
Actual: You can't reference a prefab which has a script derived from the public field's class that you're trying to assign the reference to. Dragging and dropping the prefab on to the field works
Reproducible with: 2017.4.27f1, 2018.4.0f1, 2019.1.3f1, 2019.2.0b2, 2019.3.0a2
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
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
- Crash on ModelImporter::ImportSkinnedMesh when disabling "Strip Bones" on a specific FBX model
- WebGL Development builds ignore the "Compression Format" setting when using "Gzip" compression
Resolution Note:
The issue you reported is not a bug, it is actually made by design.
You can find GameObjects in assets, but the object picker doesn't check the prefabs for internal data (components), that's why the object picker is not showing prefab with the desired script from the project assets.