How to easiest save a scene

Discussion and help for Easy Save 3
Post Reply
golraz
Posts: 3
Joined: Sun May 12, 2019 6:06 pm

How to easiest save a scene

Post 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
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: How to easiest save a scene

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply