Saving and Loading data between scenes.

Discussion and help for Easy Save 3
Post Reply
Shortiez
Posts: 3
Joined: Wed Jan 01, 2020 7:38 pm

Saving and Loading data between scenes.

Post by Shortiez »

I am currently working on a project where there are multiple scenes i can move between and i want rotations and positions of objects in scenes to be saved and loaded when i enter and leave different scenes. How would i do this?
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Saving and Loading data between scenes.

Post by Joel »

Hi there,

With regards to saving the position of your objects, this is covered in the basic saving and loading section of the Getting Started guide. I.e. you use ES3.Save and ES3.Load.

https://docs.moodkie.com/easy-save-3/getting-started/

To save when you leave the scene, you can put the save code in OnDestroy(). To load when you enter the scene, put the load code in Start() or Awake(). There is an example of this here:

https://moodkie.com/forum/viewtopic.php?f=16&t=1889

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply