Seanba / Tiled2Unity

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

Components missing in imported maps? #114

Closed knurhp closed 7 years ago

knurhp commented 7 years ago

Hi,

Recently been watching and following various youtube tutorials on making maps with Tiled and importing with Tiled2Unity and attempted to create a map for my own project.

The issue I have run into is that after watching the tutorials on youtube, I have noticed my imported maps are missing components (notably: Sorting Layer Exposed (Script)).

Youtube tutorial: image

Mine: image

I'm not sure if this component is supposed to be available by default and I have tried to manually assign a sorting layer within Tiled by creating a custom property and using unity:sortingLayerName. This appears to work with no problem as the imported map shows on the correct sorting layer after importing it - however, the Sorting Layer Exposed (Script) component is still missing and I can't seem to find a way to adjust the sorting layer within within Unity itself.

Is this the default behaviour? If so, how do I add/enable the component as the youtube tutorial I have seen has shown?

knurhp commented 7 years ago

Figured it out - just had to add the runtime script as a component manually. Derp. :(

Seanba commented 7 years ago

Hi there. This was actually a bug. You are not expected to add this component manually. This is fixed in version of 1.0.12.3 of Tiled2Unity which I just released moments ago.