Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2018.1.0b5
2018.2.0a3
2018.2.8f1
Issue ID
1089842
Regression
Yes
AssetDatabase.ForceReserializeAssets() breaks the scene when used in OnEnable()
How to reproduce:
1. Download the attached 'script.cs'
2. Create a new Unity project and import the script
3. Drag the script onto any GameObject
Expected result: Assets are reserialized without any problems
Actual result: everything in the scene gets deleted and two broken scene duplicates are added to the Hierarchy window
Reproducible with: 2018.1.0b5, 2018.1.9f2, 2018.2.0a3, 2018.2.17f1, 2018.3.0b12, 2019.1.0a10
Not reproducible with: 2018.1.0b4, 2018.2.0a2
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
- NullReferenceException is thrown when assigning PanelSettings asset to a UIDocument dynamically at runtime
- Crash on GfxDeviceD3D12Base::DrawBuffersCommon when disabling "Allow FSR2" parameter while in Play Mode with Direct3D12 set as graphics API
- Crash on vkGetInstanceProcAddr when setting graphics API to "Vulkan" on Fantasy Kingdom learning project
- Overlay Camera "clear depth" not working on Vulkan+Pixel8
- Shadows from Shadow Caster 2D using 2D Colliders show incorrectly when tiles are removed at runtime
Resolution Note (fix version 2021.2):
Fixed in 2022.1.0a9