Two tips for tilemap artifacting issues (lines and gridlines in game view)

I’d used a very stark ‘blue sky’ background tile in my project, and was seeing this bleeding through around the edges of other tiles. Here’s a couple of ways to solve this if you’re having this issue too:

  1. Go into the Package Manager and enable ‘2D Pixel Perfect’. 2D Pixel Perfect gives you a Pixel Perfect Camera script which you can add to the Main Camera in your scene, fixing the tile tearing.

A more technical option is:

  1. When you import your image, set your pixels per unit to one pixel lower than the actual ppu. This will create an automatic bleed that forces your tiles to overlap and removes the lines. The cause of this is that you end up seeing some of the next tile in the map as you move.

Hope this helps.

1 Like

Privacy & Terms