Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiled2Unity Cannot Find Textures when importing them to Unity #126

Closed
Felixwaffle opened this issue Aug 26, 2017 · 5 comments
Closed

Tiled2Unity Cannot Find Textures when importing them to Unity #126

Felixwaffle opened this issue Aug 26, 2017 · 5 comments

Comments

@Felixwaffle
Copy link

When I use Tiled2Unity on my TMX everything seems to work fine in Tiled2Unity, but when I move over to Unity unity has errors trying to find the art assets and does not create them in the "Textures" folder so the result is a fully formed map full of meshes with no textures.

screen shot 2017-08-26 at 11 05 18 am

screen shot 2017-08-26 at 10 27 35 am

screen shot 2017-08-26 at 11 05 53 am

The file loads fine in Tiled and the assets are there when I use the "Preview Map" feature in TIled2Unity.

Do I have to already have the art assets in the (Current) Unity Project?

@Seanba
Copy link
Owner

Seanba commented Aug 27, 2017

It looks like you are using "internal textures". In other words, the textures referenced by your Tiled file are already in your Unity project.

However, it also looks like those textures have been moved as the Assets/HB directory doesn't exist. Reloading the TMX file in Tiled and re-exporting through Tiled2Unity should resolve the new location of those files.

@Felixwaffle
Copy link
Author

Ok,

So I believe your program is seeing my textures as "internal textures” so it is not creating new ones in the Tiled2unity Textures folder.
But those files are in another unity project. (with a messy system of art asset organization) So I want Tiled2Unity to see that those files are not actually in the current project and make new assets to reference in Unity.

I was hoping to be able to use your tool to re-export my TMX file to a new unity project and have it create all of the files fresh.

Or do you know if Tiled has a method of reserving it’s art assets to a new folder so that I can add that to mu new Unity project?

@Felixwaffle
Copy link
Author

Felixwaffle commented Aug 28, 2017 via email

@Seanba
Copy link
Owner

Seanba commented Aug 28, 2017

Is that other Unity project still active or important to you? If you remove the *.meta files for the textures
that are in that other project then you'll trick Tiled2Unity into re-exporting those files.

FWIW, I would only use "internal" textures if my textures were being shared between Tiled maps and some other game objects (like sprites). Otherwise, I'd keep all my "raw" art assets outside of Unity entirely.

@Felixwaffle
Copy link
Author

Felixwaffle commented Aug 30, 2017 via email

@Seanba Seanba closed this as completed Oct 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants