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

Recreate new obj and prefab when load project without library folder ? #51

Closed
wangjianpeng opened this issue Jul 8, 2016 · 3 comments
Closed

Comments

@wangjianpeng
Copy link

I download project from svn ,then my map prefab that use the msh obj with my custom script will lose, then i find the obj will recreate when open the project without library folder.how can i do prevent import script recprocess to create obj and prefab to recover my exit map prefab when open new project ?

@Seanba
Copy link
Owner

Seanba commented Jul 8, 2016

My apologies but I don't understand. Is there a chance you know someone that speaks both our languages that could put your words into English for me?

If it helps, you shouldn't need to build your own version of Tiled2Unity if you just want to use it to import Tiled maps in Unity. You could just download the tool here and use it.

@wangjianpeng
Copy link
Author

Sorry for my unclear words. I had imported a tiledmap to unity by this tool, then their would be some files include map.xml ; map.obj and map.prefab,then i add a test script to map.prefab.now, i push the new project to my git server.at last , i pull files from the server to a new project. then i reopen the project that pulled resource from my git server. the map prefab will lost previous test script .this is my encounter problem.
now i had resolve it.i ignore all the map.xml files ,and not allowed to push to my git server. and modify the tilemap imported asset post process, when it will recreate mesh and replace the prefab ,it must check whether the specify asset path contains the map.xml.
I dont't think it's a bug. just find it maybe trouble to my situation.at last , the problem solved. thank you.

@Seanba
Copy link
Owner

Seanba commented Jul 8, 2016

No need to apologize. I'm the one limited to one language ;)

Since the prefab is recreated each time a *.tiled2unity.xml file is imported you are going to lose any edits you made to the prefab "by hand". This is where Custom Importers come into play. The plan for you would be to create your own Custom Importer that adds components to your prefab automatically as part of the import process.

I talk about Custom Importers more on my blog here: http://www.seanba.com/megadadadventures.html

Best,
Sean

@Seanba Seanba closed this as completed Aug 29, 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