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
- Character spacing value is not applied when using a specific font asset
- [Android][IL2CPP] Player crashes on __memcpy_aarch64_simd+276 when invoking native code via a plugin on some ARM64 Android devices
- [Android]Resources fail to load when the AAB build contains a large Addressables Bundle
- Unity is loading internal version of SharpZipLib instead of local version
- The Context Menu items are ordered incorrectly
Add comment