I have a question regarding XML-files within the AssetsResources-Folder:
I am able to load a XML-file from the AssetsResources-Folder with
and converting this TextAsset with this line of code:
to a XmlDocument.
Now, I want to change attributes within this XML-file, but I do not want to save the changes to a new XML-file. I want to save the changes to the XML-file in the AssetsResources-Folder, because files within the Build of the game cannot be changed with Text-Editors, and to prevent cheating my XML-file must not be altered by the user.
using Unity 3.5.1f2, MonoDevelop 2.8.2, Windows 7 64-bit
That isn't possible since the whole assetdatabase is created in the Unity editor and is readonly at runtime. There's no build-in way to save altered assets at runtime.
answered May 01 '12 at 04:09 AM