2d sprite alignement cause lines between sprites

Hey Guys,

I have a problem with my sprite alignement. I have for example a sprite that is 1 unit by 1 unit. I then make a tile, I place a sprite at 0, one at 1, 2, 3 etc. Even though the sprites are 64x64 and set to 64 pixels to unit, it still create small lines between my sprite, they are not aligned perfectly. My filter mode is set to point. Does anybody have an idea on how to solve this ?

Thanks a lot for your time.


This is an old question, but it came up as a first result in a Google search, so I might as well add a solution that worked for me.

Go to Edit -> Project Settings -> Quality and make sure your quality is Good or lower. At higher quality levels, Anisotropic Rendering and Antialiasing get enabled by default and I think it’s one of these two settings that causes the artifacts between the rendered sprites.

This happened to me when using a sprite atlas. If I used separate assets for each sprite or had the tiles actually adjacent on the atlas, the lines went away. Compression artifacts, maybe?