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