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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note:
Issue does not reproduce, tested on 2021.3.34f1. Seems that a fix in 2022 was backported that addresses this already.