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

Properties created via the Object Type Editor do not get exported #31

Closed
ashwin911 opened this issue Mar 22, 2016 · 4 comments
Closed

Comments

@ashwin911
Copy link

If I create a new type with a property in the Object Type Editor and add that type to an object, I can see the property in the properties window of that object. But when I export it, only properties that have been created per object in the Properties window appear in the XML file.

@Seanba
Copy link
Owner

Seanba commented Mar 22, 2016

Could you send me an example TMX file? Sometimes there are Tiled features
I'm not aware of and this might be one of them.

Best,
Sean

On Tue, Mar 22, 2016 at 10:50 AM, ashwin911 notifications@github.com
wrote:

If I create a new type with a property in the Object Type Editor and add
that type to an object, I can see the property in the properties window of
that object. But when I export it, only properties that have been created
per object in the Properties window appear in the XML file.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#31

@ashwin911
Copy link
Author

I've added a fireOn property in the Object Types Editor. I think I know what the problem is. The properties created in Object Types Editor aren't written to the TMX file but need to be exported separately to a XML file and reimported if you open the TMX map on a different computer. I have included that xml file in the zip file.

objectTypeEditor export test.zip

@Seanba
Copy link
Owner

Seanba commented Mar 22, 2016

I see what you mean now. It looks like the Object Types Editor is still a
work in progress. I'll talk to Bjorn to see what his plans are. For
Tiled2Unity I will require the object type data to somehow be referenced
from the TMX file.

On Tue, Mar 22, 2016 at 11:31 AM, ashwin911 notifications@github.com
wrote:

I've added a fireOn property in the Object Types Editor. I think I know
what the problem is. The properties created in Object Types Editor aren't
written to the TMX file but need to be exported separately to a XML file
and reimported if you open the TMX map on a different computer. I have
included that xml file in the zip file.

objectTypeEditor export test.zip
https://github.com/Seanba/Tiled2Unity/files/184502/objectTypeEditor.export.test.zip


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#31 (comment)

@Seanba
Copy link
Owner

Seanba commented Apr 17, 2016

Hi Ashwin, with the latest version of Tiled2Unity (1.0.5.0) your default property values will now be exported as you'd expect. You are required to point Tiled2Unity to your Object Types XML file however.

@Seanba Seanba closed this as completed Apr 17, 2016
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