Hey Tony, I'm a bit stuck figuring out saving with DS. The game I've made only takes 10 minutes to play, so I'm thinking it's best to disable saving all together and have the game reset all variables on quit to main menu, but I'm not sure how to get this working.
I haven't added a Save System or DS Saver to my Dialogue Manager, but the variables are still being saved after scene changes. Is there something else that saves the dialogue database on scene change?
I set Record Persistent Data to No Game Objects, so everything else in the gameplay scene is being reset - it's just getting the database to reset I need to figure out.
Thanks
Questions about saving
Re: Questions about saving
Hi,
If you're using Saver components such as PositionSaver and EnabledSaver to remember things across scenes changes, then make sure your Dialogue Manager has a DialogueSystemSaver component, and use this line of C# code when returning to the main menu:
If you're not using Saver components, then when returning to the main menu use this line of C# code:
If you're using Saver components such as PositionSaver and EnabledSaver to remember things across scenes changes, then make sure your Dialogue Manager has a DialogueSystemSaver component, and use this line of C# code when returning to the main menu:
Code: Select all
PixelCrushers.SaveSystem.ResetGameState();
Code: Select all
PixelCrushers.DialogueSystem.DialogueManager.ResetDatabase();
-
- Posts: 195
- Joined: Mon Jul 01, 2019 1:21 pm
Re: Questions about saving
Awesome thanks Tony!