Seanba / Tiled2Unity

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

Textures with a same name cause error #96

Closed KirinHorse closed 7 years ago

KirinHorse commented 7 years ago

I import two folder into Tiled Map Editor, which both has a texture with the same name。It worked well in the editor.But when I tyr to import tmx to Unity, only one texture with the name was imported. And all the tile which need the missing texture used the wrong texture instead.It did't work well in unity.

Seanba commented 7 years ago

Thanks for the bug report. I'm not sure the best way to handle this but I'll try to come up with something.

Seanba commented 7 years ago

With Tiled2Unity version 1.0.11.0 you can add custom properties to the tileset to apply prefix and/or postfix decoration to each texture in the tileset, thereby making them unique upon export.

You can read about it here: http://tiled2unity.readthedocs.io/en/latest/prepostfix/