Skip to content
New issue

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

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

Already on GitHub? # to your account

Custom attributes from templates #155

Open
jamiec7919 opened this issue Feb 13, 2018 · 0 comments
Open

Custom attributes from templates #155

jamiec7919 opened this issue Feb 13, 2018 · 0 comments

Comments

@jamiec7919
Copy link

jamiec7919 commented Feb 13, 2018

Hi,

I'm not sure if this is by design or not but it appears that custom attributes set by a template are not being read/imported. For example (image below if it helps), I've created a template called EnemySpawn.tx which has a default attribute called enemy:type. This is not being imported into Unity, however if I manually add a custom property it works ok.

tiled

I see the following in the tmx file, which makes sense but I'm not sure if Tiled2Unity will read the .txs and I've just got it in the wrong place?

<object id="5" template="EnemySpawn.tx" x="232" y="264"/> <object id="8" template="EnemySpawn.tx" x="160" y="168"> <properties> <property name="test" value="rear"/> </properties> </object>

I'm trying to use these in a custom importer (using the HandleCustomProperties method) which works fine for manually added properties isn't being called for objects with only the template defaults.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant