Search Issue Tracker
Not Reproducible
Votes
0
Found in
5.0.0b20
Issue ID
665926
Regression
No
[SaveScene] child objects are saved, even though parent is marked as DontSave
If you save scene with method "EditorApplication.SaveScene(string, bool)", objects with "hideFlags.DontSave", still have their childs saved in scene (childs are not marked as "DontSave"). I know it is not really a bug, but I'm sure this can cause unexpected problems. Because I notice that childs are saved not with global transform coordinates, but with local, so in the saved scene they will have their primary position changed.
1. Open scene "Input".
2. Select game object "parent".
3. Click menu item "Test/Mark As DontSave And Save Scene", this method will set "hideFlags.DontSave" then will save the scene "Output".
and finally will mark selected object as "None".
4. Open scene "Output".
5. You should notice that game objects "parent" child is saved.
Reproduced: 5.0.0b21, 5.0.0b20, 5.0.0b10
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment