Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Votes
1
Found in
2019.4.20f1
2020.2.5f1
2020.3.0f1
2021.1.0b5
2021.2.0a2
Issue ID
1321443
Regression
Yes
Subassets destroyed by the undo system are kept if the Editor looses focus before saving
How to reproduce:
1. Open the attached '1321443.zip' project
2. Open the 'SampleScene'
3. In the Project window select the 'Test' Asset
4. In the Inspector press the 'Add Children' button
5. Select File > Save (sub-asset should appear in the Project window)
6. Press 'ctrl + z'
7. Unfocus the Editor by opening another program
8. Get back to the Editor
9. Select File > Save
Expected result: The subasset gets removed
Actual result: The subasset doesn't get removed
Reproducible with: 2019.4.20f1, 2019.4.23f1, 2020.2.5f1, 2020.2.7f1, 2020.3.3f1, 2021.1.0b5, 2021.1.1f1, 2021.2.0a2, 2021.2.0a12
Not reproducible with: 2018.4.33f1, 2019.4.19f1, 2020.2.4f1, 2021.1.0b5, 2021.2.0a1
Notes:
- The issue doesn't reproduce if step 7 is skipped
- Before unfocusing the Unity the subasset Inspector is empty
- The issue is also reproducible with Undo.DestroyObjectImmediate
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
- 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
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0a14
Resolution Note (fix version 2021.1):
Fixed in 2021.1.8f1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.11f1
Resolution Note (fix version 2019.4):
Fixed in 2019.4.29f1