Search Issue Tracker
Fixed
Fixed in 1.3.X - Entities
Votes
0
Found in [Package]
1.2.0-pre.12 - Entities
1.3.X - Entities
7000.0.0a1
Issue ID
ECSB-991
Regression
Yes
"MissingReferenceException" error is thrown when moving a Child GameObject to another GameObject in the Hierarchy window
Reproduction steps:
1. Open the “ReproProject“ project
2. Open the “Assets/Scenes/OutdoorsScene“ scene
3. Open the “SubScene” SubScene in the Hierarchy window
4. Drag the “MoveThis“ Child GameObject from under the “Parent1“ Parent GameObject to the “MoveToHere“ GameObject in the Hierarchy window
5. Observe the Console window
Expected result: No errors are thrown in the Console window
Actual result: “MissingReferenceException: The object of type 'UnityEngine.GameObject' has been destroyed but you are still trying to access it.“ error is thrown in the Console window
Reproducible with: 1.2.0-exp.3, 1.2.0-pre.12(2022.3.21f1, 2023.2.14f1, 6000.0.0b11)
Not reproducible with: 1.1.0-pre.3(2022.3.21f1, 2023.2.14f1, 2023.3.0a19)
Reproducible on: Windows 11 Pro (22H2)
Not reproducible on: No other environment tested
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
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
Resolution Note (fix version 1.3.X - Entities):
In very specific cases, with Live Baking of Companion Components, it would rebake when re-parenting. However, this would lead to trying to access a GO right after it was destroyed. Changed the order of operations, and now it doesn't access it after anymore.