Saving Custom Conversation Field
Posted: Wed Jul 13, 2022 6:59 pm
Hi there,
I'm currently working on implementing the DialogueSystem in my game. I've bumped into an issue with saving a custom field for my conversation settings.
To save anything dialogue related I use this in my custom save script
I then load it again upon reloading the game with
My DialogueSystemController settings look like this:
Saving works fine, except when I try to save a custom field each of my conversations has (the DisplayCount). It gets updated correctly each time the conversation is loaded, but somehow doesn't get saved.
Do you have any suggestions on what I need to change to get this to work? I'm happy to provide additional info if it helps.
Thanks for any help you can provide
I'm currently working on implementing the DialogueSystem in my game. I've bumped into an issue with saving a custom field for my conversation settings.
To save anything dialogue related I use this in my custom save script
Code: Select all
dialogueSaveData = PixelCrushers.DialogueSystem.PersistentDataManager.GetSaveData()
Code: Select all
PersistentDataManager.ApplySaveData(dialogueSaveData)
Saving works fine, except when I try to save a custom field each of my conversations has (the DisplayCount). It gets updated correctly each time the conversation is loaded, but somehow doesn't get saved.
Do you have any suggestions on what I need to change to get this to work? I'm happy to provide additional info if it helps.
Thanks for any help you can provide