Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
1.0.0
Issue ID
1285029
Regression
No
[2D] Sprite Atlas preview image is cached with reference to Sprite Atlas name but not removed after Atlas deletion
Reproduction steps:
1. Open Unity project in "New Unity Project.zip (64.6 KB) "
2. Select "New Sprite Atlas" in the Project window
3. Inspect preview in Inspector window
4. Delete the atlas and create a new Sprite Atlas (new Atlas will also be named "New Sprite Atlas")
5. Select "New Sprite Atlas" just created
6. Inspect the preview in the Inspector window
Expected result: The preview is empty because there are no Sprites packed, if the cache is stored in relation to asset name, then all cache associated with the asset should be removed during the asset deletion
Actual result: The preview from the previously deleted Atlas is still visible until the new Atlas is re-packed
Reproducible with: 2018.4.28f1, 2019.4.12f1, 2020.1.9f1, 2020.2.0b7 (2D Sprite 1.0.0)
Could not test with 2021.1 because 2D Sprite was no available
Notes:
1. Atlas name must be the same
2. In Unity 2020.2.0a15 and higher you will need to install the "2D Sprite" package to create Sprite Atlases
3. A video is attached
4. 2D sprite was not available in 2021.1
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
- PlayerPrefs get corrupted when a minimized fullscreen Player is closed through the Taskbar
- "To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations." warning is printed when JobTempMemoryLeakValidation switch is enabled
- Main Thread stalling when loading Audio Source asset asynchronously while preloading another Audio Source asset
- Material artifacts occur in the Material Preview window when baked lighting is applied to scenes
- “ArgumentOutOfRangeException” after saving, reseting and re-add Default Tile Palette Tools to the list in Preferences window
Resolution Note:
SpriteAtlas generation is deterministic and for the given Inputs it will create the same output.