How do I delete or initialize archive files

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
DumplingQ
Posts: 9
Joined: Fri Apr 07, 2023 12:02 pm

How do I delete or initialize archive files

Post by DumplingQ »

How do I delete or initialize archive files
Hi, my friend!
I added "Save System", "Dialogue System Saver", "Json Data Serializer" to "Dialogue System". But now I want to delete the previously saved session data when I click "New Game". What do I do? Is it just to delete the local file? So where are the local files stored?
User avatar
Tony Li
Posts: 20685
Joined: Thu Jul 18, 2013 1:27 pm

Re: How do I delete or initialize archive files

Post by Tony Li »

Hi,

Use SaveSystem.DeleteSavedGameInSlot(#). If there's no saved game in the slot, it won't complain, so you can always delete slots when starting a new game without having to check if the slot has a saved game.

If you don't want to write any code, you can use the equivalent method in the SaveSystemMethods component.
Post Reply