- Home /
Question by
Henry90 · Apr 02, 2015 at 10:19 AM ·
assetxmlresourcesresources.load
Loading XML asset after build
Hello everybody, my problem is quite simple. I have my game which uses an XML file. This is read at runtime through a code like the following:
TextAsset textAsset = (TextAsset) Resources.Load("MyXMLFile");
XmlDocument xmldoc = new XmlDocument ();
xmldoc.LoadXml ( textAsset.text );
What I want to do is: I want to have the build of my game and I want to be able to modify the XML file used by my game, and see the differences in my game. My XML is used for simple stuff. Let's say for example I read a colour in the XML file. I want to be able to modify the colour written in the XML and see the difference in my game (in my build of course, not through the editor). What do I do wrong? My XML is located in the Resources which has this path:
C:\Users\Enrico\Documents\PhD'sProject\Assets\Scripts\Resources
Thanks in advance!
Comment