Visible Sounds

XML Serializer

Serialization for Saving and Loading Objects in Unity to and from XML.

Serialize the un-serializable.

This system gives Unity developers a good foundation to build from providing lighting quick runtime saving and loading during runtime.

Using Unity 2020.3.25f1 or later.


This foundation allows users to understand how to save transforms and map gameobjects to and from xml.


— SETUP



  1. * Clone/download the repository and open it in Unity 2020.3.25f1 or later.
  2. * Open the Sample Scene and drop in a load of example objects from the prefab folder in different positions and/or rotations.
  3. * Enter play mode and click Save Scene from the icon bar.
  4. * Click Reset Scene in playmode or exit playmode and destroy the objects.
  5. * Run the scene again and click load scene.
  6. * The objects will now be rebuilt from your save.