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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
This is a duplicate of issue #-991