Search Issue Tracker
Won't Fix
Under Consideration for 2021.3.X
Votes
0
Found in
2021.3.17f1
Issue ID
UUM-27298
Regression
Yes
[21.3 only] Error "NullReferenceException UnityEditor.SceneView.OnGU" is thrown when deleting the child prefab in the Scene view
How to reproduce:
1. Open the project “IN_29357”
2. Open the “Goblin_01” prefab
3. Select any child prefab in the Scene view
4. Delete it
Expected result: no error in the Console
Actual result: “NullReferenceException” error in the Console
Reproducible with: 2021.2.0b15, 2021.3.17f1, 2022.1.0a14
Not reproducible with: 2021.2.0b14, 2022.2.5f1, 2023.1.0b1
Couldn’t test with: 2020.3.44f1 (due to compiler errors and missing scripts in prefab)
Fixed in: 2022.1.0a15
Reproducible on: Windows 10 Pro
Note: not reproducible if deleting child prefab through Hierarchy
Workaround: delete prefabs through Hierarchy instead of Scene view
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:
Issue does not reproduce, tested on 2021.3.34f1. Seems that a fix in 2022 was backported that addresses this already.