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
- 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:
SpriteAtlas generation is deterministic and for the given Inputs it will create the same output.