How to fix tile gaps in Unity

Quick and easy way to fix tile gaps in Unity. Whenever you are using the Tile Palette in Unity to draw tiles, you will notice some gaps.
Advertisement
2 min read

Tile gaps can be frustrating especially if you have a lot of sprites you have to work with

Creating a beautiful game isn’t easy but it’s very rewarding. Today, the popularity of pixel art is on the rise and understandably so because they’re so cute!

I have been using Unity to make a game (eventually) and there’s definitely a lot of learning to do.
While working with pixel tiles, I noticed there are gaps in-between each tiles. I’ve searched for hours on how to fix this. Some videos I found online are suggesting to make the tiles a little bigger by editing it in Photoshop. I was like, there must be a better way.

Watch the video for guide


I played around with unity and eventually found a way to fix this.

Under your Project, select the sprite sheet you are using as your tile set.

Then in the inspector under Pixels Per Unit, change it to less than 0.10 from it’s original unit size.
For example, if your tile is 48 x 48, change it to 47.90 x 47.90

Frustrating tile gaps
Tile gaps gone!

When you re-paint the tiles again, the gaps are gone like magic!

444 views
Advertisement
Facebook
Twitter
Reddit
Telegram
LinkedIn

Thank you for reading ♥ Please leave a comment

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Advertisement
0
Would love your thoughts, please comment.x
()
x