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

Package: Entity Component System (ECS)

-

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

  1. 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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.