Page 3 of 3

Re: Trouble with saving

Posted: Tue Oct 06, 2020 9:16 pm
by cptscrimshaw
If I'm going to add this to my own scene loading code, will I need to do anything with the save system component as it sits currently, since it's already loading/unloading scenes automatically? That's really the part I wasn't sure of.

Re: Trouble with saving

Posted: Tue Oct 06, 2020 9:32 pm
by Tony Li
Probably not, although you may want to untick the Save System component's Save Current Scene checkbox. Here's a list of the scene change-related operations in SaveSystem to help you identify if you need to do anything special:
  • SaveSystem.LoadScene(X): Unloads other scenes and loads scene X.
    Similar to SceneManager.LoadSceneAsync(Single).
  • SaveSystem.LoadAdditiveScene(X): Additively loads scene X.
    Similar to SceneManager.LoadSceneAsync(Additive).
  • SaveSystem.UnloadAdditiveScene(X): Unloads an additively-loaded scene X.
    Similar to SceneManager.UnloadSceneAsync(X).
  • SaveSystem.UnloadAllAdditiveScenes(): Unloads all scenes previously loaded by LoadAdditiveScene().
  • SaveSystem.SaveToSlot(#): If Save System component's Save Current Scene is ticked, records the name of the current active scene.
  • SaveSystem.LoadFromSlot(#): If Save Current Scene is ticked, calls SceneManager.LoadSceneAsync(name, Single).