View Single Post
  #61  
Old 04-21-2014, 09:09 PM
Tyen05
Discordant
 
Join Date: Mar 2009
Location: eqbrowser.com
Posts: 309
Default

This will create a menu item in Unity to make XML import happen for objects.

You have to make a prefab resource called "Dummy" in "Objects" directory (this must be located in a Resource directory). The rotations are in radians and not degrees. You may see multiplyers like "pos *= 0.3f", this is for scaling.

In case your scene is rotated you should rotate it, OR modify the script to replace coordinates or rotation parts. Depends on your project, really.

Unity XML Object Importer: http://eqbrowser.com/misc/EQObjectImporter.cs

This is an example of the XML: https://github.com/eqbrowser/Ecommon...20ECOMMONS.xml
__________________
Browser based EQ project
Reply With Quote