Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2020.2
2021.1
2021.2
2021.2.9f1
2021.3
2022.1
Issue ID
1413352
Regression
No
"The Prefab you want to instantiate is null" error appears after switching between "Texture" and "Sprite" when generating a GO
How to reproduce:
1. Open project "GameObjectImporter.zip"
2. Select "testAsset.myabc" (Assets > testAsset)
3. In the Inspector window enable the "Generate Game Object" setting and press the "Apply" button
4. In the Inspector window disable the "Generate Game Object" setting and press the "Apply" button
5. Observe the Console window
Expected result: No errors
Actual result: "ArgumentException: The Prefab you want to instantiate is null." error appears
Reproducible with: 2020.2.0a17, 2020.2.0b9 2021.1.0a1, 2021.1.28f1, 2021.2.19f1, 2021.3.0f1, 2022.1.0a5
Not reproducible with: 2020.2.0b10, 2020.2.7f1, 2020.3.33f1, 2022.1.0a6, 2022.1.0b16, 2022.2.0a10
Could not test with: 2019.4.38f1, 2020.1.17f1, 2020.2.0a16 (Errors after downgrade)
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a6