Seanba / Tiled2Unity

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

Importing map problem. Getting error missing texture #186

Closed sharondenys closed 5 years ago

sharondenys commented 5 years ago

Hi I have this issue when I try to import my files to unity.

-sample_map.tmx -Rougelike.tsx

and my sprite sheet

-roguelikeSheet_transparent.png

These are my screenshots.

screen shot 2019-02-21 at 2 46 01 pm screen shot 2019-02-21 at 2 45 57 pm

I downloaded the asset from Kenny's asset. It comes with a complete sample map and a transparent sprite sheet. What does the error mean by missing textures? Because I've imported all the file needed.

It would be great if you could help.

Seanba commented 5 years ago

Hi there, @sharondenys. Does your sample_map.tmx work when you try to open it in Tiled? If SuperTiled2Unity is having trouble finding the referenced files then I would imagine Tiled can't find them either.

If I had to guess, your problem is that roguelikeSheet_transparent.png is not in the location that Rougelike.tsx is expecting it. The relation of your files in Unity should be something like this ...

SomeFolder/Rougelike.tsx SomeFolder/roguelike-pack/Spritesheet/roguelikeSheet_transparent.png

In other words, you have to keep the relative paths to your TMX, TSX, and PNG files intact as you import them into Unity.

Seanba commented 5 years ago

Also, this is the Tiled2Unity depot, not the SuperTiled2Unity one :)

sharondenys commented 5 years ago

Hello,

I managed to fix the issue after playing around with it. It is the file location that went wrong. Thanks!

Seanba commented 5 years ago

You're welcome. Good luck with your game.