I hope you are doing great.
Had a bit of a headscratcher with SaveSystem.addedScenes.
Scenario #1:
Code: Select all
Start Game -> Load Additive Scene "City" -> Save Game (Slot 1) -> Main Menu -> Load Game (Slot 1).
I "fixed it" by just initializing scenes with SceneManager when loading games.
Scenario #2:
Code: Select all
Start Game -> Load Additive Scene "City" -> Save Game (Slot 1) -> Main Menu -> Quit Game -> Start Game ->Load Game (Slot 1)
Well, again I "fixed it" by using SceneManager only when it's necessary (when scene is in addedScenes but not loaded).
This all seems really "hacky". I have this feeling I am doing something wrong? For a brief moment I used SceneManager to handle all the scene changes (to reduces the "hacky"), but I would prefer using SaveSystem to invoke Savers when loading/unloading scenes.