- Home /
Create .unity file outside Unity3D environment
I needed to create scenes for Unity3D in Adobe AfterEffects. To do this, i am writing a plugin that makes exports Unity3D readable format. This fomat may be only a text script file or XML?
Comment
i am trying to get After Effects art into unity and would love to hear if you succeeded, and how. Care to share? -greg
Answer by burnumd · May 06, 2010 at 12:55 PM
You can use XML. If you want to parse XML easily, you'll want to include the System.Xml namespace. Like so:
Javascript
import System.Xml;
C#
using System.Xml;
Then you'll load up the file however you want (using System.IO or Unity's WWW class). You can use Load with an IO stream or use LoadXml with a string representation of your XML as in the following
C#
XmlDocument document = new XmlDocument ();
document.LoadXml (myXmlString);
Javascript
var document : XmlDocument = XmlDocument ();
document.LoadXml (myXmlString)