Search Unity

Resolved SpriteAtlas can not pack rectangle sprite properly (cutoff)

Discussion in 'Editor & General Support' started by No3371, Dec 21, 2020.

  1. No3371

    No3371

    Joined:
    Dec 1, 2016
    Posts:
    42
    1. The sprite is already set to Full Rect.
    2. This very basic red rectangle is created to reproduce the issue, the rect in my project also failed to be packed properly.
    3. When packed with other sprites, the packed shape could be different, but never correct for me. Ex: the top side becomes triangle (sharp), or the bottom px color is wrong.

    (Case 1300848)

    upload_2020-12-21_17-45-24.png

    Other problems:
    1. Sprite pixels are wrongly written to transparent pixels
    upload_2020-12-21_18-30-19.png (This is a very simple rectangle)
    upload_2020-12-21_18-32-28.png (Rectangle too)

    2. Sprites get connected, ignoring padding.
    upload_2020-12-21_18-31-5.png (A ping icon and the above button get connected)
    upload_2020-12-21_18-31-41.png (A ping icon and a white square get connected)
     
    Last edited: Dec 21, 2020