Skip to content

Commit

Permalink
Add Information about Dialogic Variables in Save Games.
Browse files Browse the repository at this point in the history
  • Loading branch information
CakeVR committed May 26, 2024
1 parent f379658 commit 3e83975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/saving-and-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ This snippet will automatically take the thumbnail saved at `Dialogic.Save.last_

## 1.2 Saving Extra Info

By default, Savegames contain information about Dialogic's timeline only. If you want to store specific information, we can achieve this by using `Dialogic.Save.set_slot_info(slot_name:String, info: Dictionary)` and `Dialogic.Save.get_slot_info(slot_name: String)` methods. \
By default, Savegames contain information about Dialogic's timeline and Dialogic variables. If you want to store specific information, we can achieve this by using `Dialogic.Save.set_slot_info(slot_name:String, info: Dictionary)` and `Dialogic.Save.get_slot_info(slot_name: String)` methods. \
However, the `Dialogic.Save.save(...)` method can simplify our work and skip calling the set method.

In the following code snippet, we will save the last used text line and the current time as extra information.
Expand Down

0 comments on commit 3e83975

Please sign in to comment.