Tight Packing in Sprite Atlas issue

I have a problem with Sprite Atlas when I use a sprite which packed in an atlas for Canvas UI.
My case: enable Tight Packing
Reproduce: I play the game, instantiate a new UI Image which uses a sprite in the atlas. It causes an issue like the image below if I disable Tight Packing and replay, the problem resolve.


my setup

still need your help.

If the sprites are used for UI , please disable TightPacking as I believe UI may not support tight meshes as it renders as quads. If possible please use a different atlas for UI sprites.

2 Likes

It should be supported according to the following changelog:

https://unity3d.com/unity/beta/unity2018.3.0b4

1 Like

Thank you very much.

Not supported yet!

Venkify hi, do you know when will UI support Tight packing? I’m on Unity 2019.4.15 and it still has artefacts in UI for Tight packed sprites.

Do your Sprite and Image settings match? If your Sprite uses Tight packing, then your UI Image Component must use “Use Sprite Mesh”.

6597538--750094--upload_2020-12-7_17-26-31.png

18 Likes