Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2020.3
2020.3.1f1
2020.3.18f1
2021.1
2021.2
2022.1
Issue ID
1373235
Regression
Yes
Asset becomes corrupted when it is overwritten by the same asset with the same name
How to reproduce:
1. Open the attached project "SaveLoadTest.zip"
2. Open scene called "SampleScene" in the attached project
3. Select "Test" GameObject in the Hierarchy window
4. Click the "Save Preset" button on Inspector to create an asset named "TestAsset"
5. Click the "Save Preset" button again to create another asset but use the same name "TestAsset" to overwrite the old one
Expected result: the overwritten asset doesn't get corrupted (you can still open it, use it, or delete it)
Actual result: the overwritten asset becomes corrupted
Reproducible with: 2020.3.1f1, 2020.3.21f1, 2021.1.25f1, 2021.2.0b15, 2022.1.0a6
Not reproducible with: 2019.4.31f1, 2022.1.0a7, 2022.1.0a12
Notes:
- The asset also losses its icon shown in the Project window
- Restarting the project or creating a new file in the Project window seems to fix the corrupted asset
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
- Assigned font's bold/font-weight styles render using Default Font's assets when Default Font has corresponding style assets defined in TMP Settings
- "Modifying the parent of a VisualElement while it’s already being modified is not allowed" error is thrown when entering text and pressing tab in the Search window
- Mesh colliders are not updating their positions of bounds correctly
- Images are missing from the "Open the sprite editor" documentation for 6.0, 6.1 and 6.2
- The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a7