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
- Keywords on Material Variants aren't automatically saved when changed on original Material through Shader Graph
- Light Probes get baked when calling LightProbes.Tetrahedralize
- Shadows flicker and cause visual artifacts when modifying a GameObject's bounds using Swizzle (Y Mask) and Sine Time nodes
- [WebGL] Frame rate drops by 5-20 fps when moving cursor or touch input in the Player
- Light bleeds when using box shaped spotlight with specific Emission Range values
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.