- Home /
Saving and Loading
First off I already have a question like this but no one seemed to be answering.
So I went to this page, http://wiki.unity3d.com/index.php?title=Save_and_Load_from_XML and I understand how it works, but I need it to be set up differently for me. My Main menu and pause menu are on 2 different scenes, so when loading and saving they need to load and save just the 1 scene that you actually play on. So how would you change the script (java) from that link into something that would work on the other 2 scenes?
When thinking about it, as soon as I leave the scene the first person object would be reset anyways so if I create a script where it doesn't destroy on loading the new scene then when you go back it should be fine, right? But even then I still need to find out how to be able to save data from a different scene. Someone in the last question mention something about .NET but i am not too familiar with it.
You could probably do something like http://answers.unity3d.com/questions/370424/dont-destroy-a-variable-when-changing-scene.html to keep certain info between scenes and just get/set all the required info using that gameObject.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Saving/Loading Problems 1 Answer
Accessing Functions from other Scripts 1 Answer
Save Player Health and stats 1 Answer
how to load a scene 1 Answer