Hi
I need your help please, because,
i have a button, “save” and if the user clicks on this button, it should
save the scene in an xml data,…. how can i do this? or is it possible?
xoxo
Tina
Hi
I need your help please, because,
i have a button, “save” and if the user clicks on this button, it should
save the scene in an xml data,…. how can i do this? or is it possible?
xoxo
Tina
It is completely possible in unity and there are various way to do it!!
if ur game is for Standalone, no much trouble implementing it, you can just use xmlTextwriter and xmlTextReader functions from system.xml namespace .After this you just have to call the functions of this class…
If it is not for standalone and ur platform doesnt support using dll, you have to write your own xml reader and writer according to ur neeed in this case you can use streamReader and streamWriter to save and retrieve data.
If your level data is not much ( may be 50 or so variables) you can check the playerPrefs to save them it would be straight forward approach…
I think in the blog unitynoobs have a sample that you need http://unitynoobs.blogspot.com/2011/04/xml-writing-to-existing-xml-file.html