So basically I have a SaveManager in my scene that uses FindObjectsOfType to find an array of objects of a type in the scene. Once the array is built, I want to to save the transform of each object on this array onto the file, and then be able to load it back up.
Up until now though, the only sort of thing I've done with ES3 is stuff like this:
Code: Select all
ES3.Save<Transform>("playerTransform", player.transform);
I thought maybe that I could type in an initial string and then have an n++ appended onto the string as the for loop saves each object, but I guess I just wanted to check if there was already any kind of functionality built into do this.
Also, if I eventually want to load each transform onto a specific object that it came from how could I do that? Create an ID for each object and save that along side the transform, then check if they match?
Anyway, thanks so much!