Seanba / Tiled2Unity

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

Tiled2Unity Cannot Find Textures when importing them to Unity #126

Closed Felixwaffle closed 6 years ago

Felixwaffle commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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?

Seanba commented 6 years ago

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 commented 6 years ago

YAY!

That worked!

Thank you!

From: Seanba notifications@github.com Reply-To: Seanba/Tiled2Unity <reply+0015cfb3985fd3f33864d031207213edc44df22481814aa792cf0000000115bc31769 2a169ce0f1633c8@reply.github.com> Date: Monday, August 28, 2017 at 12:31 PM To: Seanba/Tiled2Unity Tiled2Unity@noreply.github.com Cc: Felixwaffle Felix@livgames.com, Author author@noreply.github.com Subject: Re: [Seanba/Tiled2Unity] Tiled2Unity Cannot Find Textures when importing them to Unity (#126)

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.

‹ You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Seanba/Tiled2Unity/issues/126#issuecomment-325454896 , or mute the thread https://github.com/notifications/unsubscribe-auth/ABXPs9xuR_m3tx8atGUP3dDbR RLIJ4AWks5scxV2gaJpZM4PDk3e .

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4b b","name":"GitHub"},"entity":{"external_key":"github/Seanba/Tiled2Unity","ti tle":"Seanba/Tiled2Unity","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143 418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"h ttps://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6 -9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/Seanba/Tiled2Unity"}},"updates":{"snippets ":[{"icon":"PERSON","message":"@Seanba in #126: Is that other Unity project still active or important to you? If you remove the *.meta files for the textures \r\n that are in that other project then you'll trick Tiled2Unity into re-exporting those files.\r\n\r\nFWIW, 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."}],"action":{"name":"View Issue","url":"https://github.com/Seanba/Tiled2Unity/issues/126#issuecomment- 325454896"}}}