Search Issue Tracker
Not Reproducible
Votes
1
Found in
5.4.1p4
Issue ID
843237
Regression
No
GameObject that changes parents when set to DontDestroyOnLoad becomes missing in the Hierarchy
When a gameObjects gets set to DontDestroyOnLoad, after becoming a child of an object in a scene and then setting the parent to null. The object retains DontDestroyOnLoad and is not destroyed on scene loading. However will not be visible in the hierarchy window.
To reproduce:
1. Open "main" scene
2. Press play
3. See "ReproDDOLObject" change parent and then not visible in the Hierarchy pane.
4. See that the object still exists by seeing in the console `Update()` `Debug.Log`s are still being called.
Reproducible: 5.5.0b9, 5.4.2f1, 5.3.6p8
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Prefab Override popup displays on wrong monitor when Inspector width is resized to minimum
- Scroll View is not moving by inertia after scrolling by click and dragging when Editor window is minimized and Canvas "Render Mode" is set to "World Space"
- "type mismatch error" occurs when the currentDirectionWS output of a Sample Water Surface node is connected to a float3 input
- URP Material Upgrade utility does not enable Alpha Clipping when material had Rendering Mode set to Cutout
- Particle System emission ignores the Sprite Atlas when using a Material that has the "Include in Build" setting unchecked
Add comment