2D Tileset Pixels Not Aligning

Hello,


I’m very new to Unity so I apologize if I leave out something.


I’m having a problem where I’m using a tileset and my pixels sometimes do not line up correctly horizontally. I have a Cinemachine 2D camera using dead zones and when I move to the right, if I stop at a certain point the pixels on things do not line up.


Here is them not aligned:
171236-pillar1.png


Now if I move a little to the right they will snap together:
171238-pillar2.png

It confuses me because the above images are only TWO tiles. And you can clearly see tearing on three parts…


Things I have read and tried:


  • I put all my tiles in a sprite atlas. I think I did this correctly, as the tiles will render fuzzy if I do not use point filter mode on the atlas

  • Turned off Anti Aliasing

  • Attached a Material with ‘Pixel Snap’ as true to all Tilemap Renderers

Any help/ideas would be much appreciated.


Thanks,
-Zander

@myzzie

Thanks for the suggestion. I tried the pixel perfect camera in your link and it seems to still happen :frowning: .


One thing I did find out is that the issue goes away when I remove the grass tile behind the pillar. Maybe I should have mentioned this before, but the above pictures are actually 4 tiles. The bottom pillar is a tile, and the grass behind it is also a tile on a different tilemap. Does this mean it is a layering issue?