Search Unity

Sprites become thinner in scene and in game

Discussion in '2D' started by Jnanda313, May 21, 2015.

  1. Jnanda313

    Jnanda313

    Joined:
    Jun 1, 2014
    Posts:
    21
    here's a pic for reference



    as you can see some of the lines become thinner and i do not know why.
     
  2. ColossalPaul

    ColossalPaul

    Unity Technologies

    Joined:
    May 1, 2013
    Posts:
    174
    If you do a calculation on the number of actual screen pixels those line will occupy and it is not nice round number, then you may face rounding errors.

    It is generally very difficult to render thin lines using rasters (images) unless you do a lot of work to calculate everything and make it pixel perfect. I suggest making things thicker so the rounding errors are not visible or google around for rendering techniques that don't require images.