Gap between tiles (Bug?)

Hey there!

I have been struggling with this issue for more than a week now.

Keep in mind I am brand new to Unity (Game dev and programming in general, also 15).

This is the issue this

View from the game tab

https://imgur.com/gallery/rTi6V3s

There are gaps between each square. And I have no idea how to fix this.

I have a sprite atlas, I tried anti-aliasing, I tried using a material.

Please help in any way you can.

Ludwig

I’ve never used the tile map features before now, but I got it to work without too much trouble.

The first thing that comes to mind is that you might have empty space around the tile sprite. If you have an atlas, make sure that the sprites are set up in perfect grid spaces (32x32, 64x64, etc…), then you can slice the tiles in the sprite editor using “Grid by Cell Size.”

Also make sure that the “Pixels per Unit” is set to your sprite’s height/width. If you’re using a 32x32 sprite, set the pixels per unit to 32. The pixels per unit should be the same for every sprite in your project.

If all else fails, you could try importing a single tile (not an atlas) and see if the issue still occurs.

You can also link the tiles you’re using, and I can try to make them work in a project to see if I can spot the issue.

Good luck.

1 Like

Thank you, I will try only doing 1 tile.

Going to take a break from 2d though.

It is very annoying currently.