Best method to call to programmatically change scenes?
IIRC there is a particular method to call that does the Right Thing(tm) for things like avoiding messages for objects destroyed due to scene change, but I can't seem to find it. :\
Scene Change?
Re: Scene Change?
SaveSystem.LoadScene().
It does the following:
It does the following:
- 1. Tells all saver components in the current scene to save their state.
- 2. Tells all saver components that they're going to be unloaded, so if they update a counter when destroyed they should ignore it this time.
- 3. If there's a Scene Transition Manager, plays the "leaving the current scene" transition (e.g., fade out or load a loading screen scene).
- 4. Loads the next scene async.
- 5. If there's a Scene Transition Manager, plays the "entering the new scene" transition (e.g., fade in).
- 6. Tells all saver components in the new scene to update their state from the save data.