when i’m trying to move my camera these lines start to appear, my sprites are 32*32 and pixels per units is set to 32(so 1sprite=1unit)
Create a new material, set the shader to Sprites/Default
, and check the Pixel Snap
box. Use that material for your sprites.
If you want to be completely pixel perfect, where each pixel on your sprite always matches up perfectly with a pixel on the screen, you’ll need to do some more work…
*copied from the link in case it ever goes dead - Camera Size is Orthographic Size *
Camera Size = x / ((( x / y ) * 2 ) * s )
Where:
x = Screen Width (px)
y = Screen Height (px)
s = Desired Height of Photoshop Square (px)
If you allow zooming and such by changing the orthographic size… well, I haven’t figure out how to do that perfectly yet - I believe it involves only allowing certain multiples of orthographic size - probably powers of 2.