To change scenes with the save system, use any of these techniques:
- In C#: PixelCrushers.SaveSystem.LoadScene("sceneName") or LoadScene("sceneName@spawnpoint")
- In a sequence: LoadLevel("sceneName") or LoadLevel("sceneName", "spawnpoint")
- Using a Scene Portal component.
- By calling SaveSystemMethods.LoadScene (e.g., add to a UI Button and call in OnClick() event).
Code: Select all
PixelCrushers.SaveSystem.RecordSavedGameData();
PixelCrushers.SaveSystem.BeforeSceneChange();
Code: Select all
PixelCrushers.SaveSystem.ApplySavedGameData();
- How To: Prevent Scene Changes From Incrementing Quests
- Dialogue System Extras: Preconfigured prefabs and animations for Save System, scene transitions with intermediate loading screen, and Scene Portals.