Question about the save system: what determines whether the dialogue system state is saved through editor play sessions? In my current system, the state of my dialogue system seems to be remembered in the editor, so every time I start the editor my variables have their state from the previous session. What I want is for them to start from their default values.
Context: I have a SaveManager object which is set up like this: And a Dialogue System Saver component on my Dialogue System: Any time I leave a scene, I call this code:
Code: Select all
SaveSystem.BeforeSceneChange();
SaveSystem.RecordSavedGameData();
Code: Select all
SaveSystem.ApplySavedGameData();
There are two things I don't understand:
- The save file gets created, but it remains empty. Nothing ever gets saved in it.
- When running the game in the editor, the variable status does get saved on scene transitions (intended). But besides that it keeps being remembered even after exiting play mode and restarting it again (unintended). When restarting the editor, everything does reset as expected.