Seanba / Tiled2Unity

Export Tiled Map Editor (TMX) files into Unity
Other
497 stars 120 forks source link

Gaps between tiles #104

Closed Maxbio1337 closed 7 years ago

Maxbio1337 commented 7 years ago

I am creating a 2D game. I created a map in Tiled and when I export it to my Unity project via Tiled2Unity I have those weird gaps between the tiles. The gaps do not appear in Tiled. It's my first time using Tiled and Tiled2Unity.

screenshot_5

Seanba commented 7 years ago

Those are seams. They appear under some conditions, depending on camera location, texture size, texture importer settings, shader, etc..

What are the dimensions of the texture you are using? Can you attach a screenshot of the texture import settings (in Unity) for the texture that is being used here?

Maxbio1337 commented 7 years ago

I believe this is what you meant? screenshot_6

Seanba commented 7 years ago

Yes, that's it. Change your filter mode from Bilinear to Point. I would expect that to fix it.

Maxbio1337 commented 7 years ago

It worked! Thank you so much!

Seanba commented 7 years ago

Great news. Good luck with your game.