标题: Saving and Loading XML example(保存和加载 XML) [打印本页] 作者: 会飞的鱼 时间: 2012-5-4 15:26 标题: Saving and Loading XML example(保存和加载 XML)
(1)
Also added to the wiki but not as a package, just the scripts to get this done, basically this simply walks all gameobjects in the scene and saves information about them to the XML file, you can expand what is saved through the SaveS***cture class file, then populate it via the _GameSaveLoad class
</ArrayOfGameItems>(2)
Expanded example, this version not only saves / loads the object to XML, but also now allows you to apply the saved settings back into the scene. The code is really self explanatory.
http://screencast.com/t/ZGYwYzI0Y2M
(3)
FYI you can simply drag the SQLITECLASS to the scriptmanager object and then the sqlite code will have buttons to use for saving and loading to sqlite.
See video:
http://screencast.com/t/aFpF3j59