Hi,
I have created a tileset in Gimp and imported into Unity.
I set the tileset sprite mode to ‘Multiple’ and opened the tileset in Sprite Editor.
I used the ‘Automatic’ option to slice the tiles. It worked perfectly.
The height is exactly detected to be 7 pixels, just like i drew it in Gimp. So, there are no invisible pixels.
But once i import these into Tile Palette, gap starts appearing above and below.
And this gap, also shows up in the game and in unity editor.
Can anyone please help.
Do let me know if more information is needed.
Each full tile in the tileset is 16x16 pixels HxW.
The ones from the above screenshots are partial tiles 7x16 HxW.
In Sprite editor, I have set the Anchors manually as i want them to be (Also captured in the above screenshots)
In Unity Editor, on the Grid settings, I have set the cell size as 0.16x0.16 as it seems to be the tile size as per unity. Setting it to higher values cause the tiles to appear in center of each cell. Setting it to lower values cause the tiles to overlap. (Setting it to 0.15x0.15 causes the same issue as 0.16x0.16. Only difference is the gap disappears and what seems to be a seam starts appearing between tiles)
Thanks
Joshua.