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
- A submenu disappears on MacOS when the MenuItem method argument "isVariableFunction" is set to "false" and priority argument is set to "-1"
- The Sprite Library Editor window has an incorrect order of Sprites when the Sprites are reordered and the order saved
- Tilemap Tiles do not get lit up unless the Light Range is greater than the distance between the position of the Tile before the transformation and the Light Source when the Tile is transformed with Tilemap.SetTransformMatrix method
- The Editor and "Reloading Domain" windows are frozen when entering Play Mode
- Crash when attempting to create a custom FMOD DSP unit
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