Search Unity

Sprite artifact

Discussion in 'Unity UI (uGUI) & TextMesh Pro' started by Klamore74, Nov 18, 2019.

  1. Klamore74

    Klamore74

    Joined:
    Jun 17, 2013
    Posts:
    30
    Hi, I can't figure out how to remove this artifact on sprite atlas.

    upload_2019-11-19_0-38-50.png

    The original atlas appears to be good, and also the sprite list:

    upload_2019-11-19_0-43-4.png

    Any hint? Thanks!
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,758
    The artifact is most likely part of the adjacent sprite in the texture.

    Make sure the X & Y coordinates of the sprite are correct as well as width and height.

    You may need to add some padding between your sprites in the texture.
     
  3. Klamore74

    Klamore74

    Joined:
    Jun 17, 2013
    Posts:
    30
    I also suspect that could be some padding problem but in the atlas I have a quite void space around

    upload_2019-11-19_17-24-24.png
     
  4. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    657
    @Klamore74 but have you checked your alpha channel in image editing app? Are you sure you don't have junk there. :)
    I'd suspect that first, especially if you have proper padding in place.
     
  5. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,758
    If you can't find the source of the issue, please export the texture and sprite asset and provide those to me here or via private message so I can take a look at them.
     
unityunity