How to get rid of gaps between tiles

Hi there,

Sorry if this is a silly question. FTR I’m very noob and I’m trying to learn the basics. This is my first post in the Forum so please give feedback if it is somehow incorrect or misplaced. Also, please note I’ve also already googled this question, but I can’t find a specific answer for the type of problem I’m having.

I’m trying to create a really simple 2D game with a Tilemap, using a Sprite Atlas that I made with plain colours for different terrains. In the image you can see a portion of it.

My Atlas is called “terrains” and I’ve split it into 64x64 sprites using Sprite Mode “Multiple” and working on the Sprite Editor to get square tiles by exact tile size.

When I import the atlas into my Tile Palette, the Palette shows perfect, but then I try to paint with the brush on the Tilemap and…

… there are gaps everywhere, as if it was leaving some padding in the grid.

How can I overcome this problem?

Refer to this thread for solutions:

I think I found the issue. My Sprite asset that I had split through the Sprite Editor was showing (I assume by default) a “Pixels Per Unit” value of 100, when my tiles are 96x96, so that was adding an extra 4 empty pixels (2 each side of each cell in the grid).

I’ve changed that to 96, and the content snaps perfectly together.