Search Issue Tracker
Duplicate
Votes
0
Found in [Package]
1.3.8 - Entities
Issue ID
ECSB-1483
Regression
No
[Entities] MissingReferenceException is thrown when renaming a GameObject with a SpriteRenderer in an entity subscene
Reproduction steps:
1. Open the attached “IN-93096_rename” project
2. Open the “Assets/Scenes/SampleScene.unity” scene
3. In the Hierarchy window, enable the “Resources” subscene
4. In the “Resources” subscene, under the “Background” GameObject, select any “Bricks” GameObject
5. Rename the “Bricks” GameObject to anything you want
Expected results: GameObject is renamed and no error is thrown
Actual results: GameObject is renamed and “MissingReferenceException: The object of type 'UnityEngine.GameObject' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.“ error is thrown
Reproduced with: 1.0.8(2022.3.56f1), 1.3.8 (2022.3.56f1, 6000.0.35f1, 6000.1.0b3)
Reproduced on: Ubuntu 24.04, Windows 11 Pro
Not reproduced on: no other environment tested
-
Resolution Note:
null
Duplicate of another internal issue: ECSB-991: "MissingReferenceException" error is thrown when moving a Child GameObject to another GameObject in the Hierarchy window
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
- Shader Graph Swizzle Node Input/Output and Mask Update Incorrectly After Undo
- [URP] Crash on GameObject::QueryComponentByType when baking a Reflection Probe in an unsaved/untitled Scene
- No Icons are used for the Entry and Exit States in the Inspector when selected in an Animator Controller
- Crash on PlayerMain(int, char const**) when exiting Standalone Player with a Particle System in the Scene
- No Icon is used for the Runtime Animator Controller Type in a Search Window when assigning an Animator Controller in the Animator Component
This is a duplicate of issue #-991