Search Issue Tracker

Fixed

Fixed in 2021.3.28f1, 2022.3.2f1, 2023.1.0f1, 2023.2.0a17

Votes

0

Found in

2021.3.24f1

2022.2.17f1

2023.1.0b13

2023.2.0a13

Issue ID

UUM-34323

Regression

No

[Sprite Atlas V2] Sprite Packer does not re-pack folder when texture type is changed to sprite when inside a target folder

--

-

Steps to reproduce:
1. Open the attached user's project "AtlasRepro.zip"
2. Ensure Sprite Packer is set to "Sprite Atlas V2" in Project Settings
3. Drag "Tex1.png" (set as Sprite) into "Assets/Pack"
4. Atlas updates correctly
5. Drag 'Tex2.png" (set as Default) into "Assets/Pack"
6. Atlas does not update which is expected
7. Set "Tex2.png" to Sprite
8. Atlas does not update which is not expected
9. Remove "Tex1" from "Assets/Pack"
10. Atlas updates to show "Tex2"
11. Add "Tex1" back to "Assets/Pack"
12. Atlas updates to remove "Tex2", and displays only "Tex1" which is not the expected result

Expected results: Sprite Packer re-packs folder when texture type is changed to sprite when inside a target folder
Actual Results: Sprite Packer does not re-pack folder when texture type is changed to sprite when inside a target folder

Reproducible with: 2021.3.24f1, 2022.2.17f1, 2023.1.0b13, 2023.2.0a13
Could not test on 2020.3.47f1 due to Sprite Atlas preview not being shown

Environment: Windows 10 22H2

Notes:
-Issue persists until a manual re-import of the Atlas asset. Restarting the Editor does not solve the issue.
-Video of the issue is attached (AtlasRepro.mp4)
-When targeting a folder with the sprite packer, the sprites inside are not packed when their texture type is changed from within the folder. When adding a texture that is not set to sprite, the texture seems to be cached and ignored.

  1. Resolution Note (fix version 2023.2.0a17):

    Fixx for this issue will be available in Unity 2023.2.0a17 and above

Comments (1)

  1. SVC-Games

    Jun 30, 2023 16:35

    In Unity 2022.3.4 when changing the compression of a sprite inside a folder to 'None' do not trigger a re-pack of the atlas that uses that folder as source. It seems related to this bug.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.