Search Unity

Unity sprite edge lines are not the same

Discussion in '2D' started by thatepicgamer, Apr 6, 2022.

?

How to fix sprite edges ?

  1. Pixel Perfect Camera

    0 vote(s)
    0.0%
  2. Pixel art

    0 vote(s)
    0.0%
  1. thatepicgamer

    thatepicgamer

    Joined:
    Apr 7, 2021
    Posts:
    2
    I created this sprite with Krita and the game is for mobile but the sprite edges are not the same size.
    In Krita is everything normal but in unity not.
     

    Attached Files:

  2. Nyxal_Indie

    Nyxal_Indie

    Joined:
    Jun 26, 2019
    Posts:
    179
    Need more information. It seems that you are using a GameObject with Sprite component to display that, what's the sprite pixel per unit? How should appear the original sprite and what's the size of that?
     
  3. thatepicgamer

    thatepicgamer

    Joined:
    Apr 7, 2021
    Posts:
    2
    In krita the box is 1024 pixel by 1024 pixel
    this is how it should be: UnityForum2Right image
    but I didnt find any fix so I removed the lines from the box but i really want to know why this is happening
     

    Attached Files:

  4. Nyxal_Indie

    Nyxal_Indie

    Joined:
    Jun 26, 2019
    Posts:
    179
    Check the PPU of the sprite (go to Project window -> Select the sprite -> Inspector -> Pixel per Unit and try set 1024