Save and Load from XML U3 Collections

Save and Load from XML U3 Collections
This script will allow you to save and load data collections into an XML file. To use, add an empty game object to the scene and attache the script to the object. When you start the scene, you will see a save and load button, these allow you to save and load the information from the xml file.

The purpose to this code is to allow you to collect objects in a given scene and save there state to the XML file, for demonstration purposes, the information that is stored in the XML file is the name of the object, the instanceID, transform positions x,y and z, you can expand on this as much as you want. Two files exist in this code, the first is the class structure that is the serializable object which we will be populating to save, the second is the process to do the actual saving and loading.

Author: Zumwalt Date: 09/30/2010