Page 1 of 1

How to easiest save a scene

Posted: Sun May 12, 2019 6:09 pm
by golraz
Hello,

I have been looking for ways to save a scene that you revisit several times. Because of that I want to save the current state of the scene everytime you make changes to it (gameobject moved, destroyed, added and more)

Is there a good way to achieve this with the asset or a way to combine it? Thankful for tips!

//Alexander

Re: How to easiest save a scene

Posted: Mon May 13, 2019 9:10 pm
by Joel
Hi there,

As this depends on how your project is structured, I would recommend taking a look at our guides to see how you would achieve this in your project. For example, to save the positions of a scene object, you can save it's Transform using:
ES3.Save<Transform>("myKey", myTransform);
And load it using:
ES3.Load<Transform>("myKey", myTransform);
All the best,
Joel