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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
Resolution Note:
SpriteAtlas generation is deterministic and for the given Inputs it will create the same output.