Clear Saved Data

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
jambon
Posts: 6
Joined: Wed May 29, 2019 3:17 pm

Clear Saved Data

Post by jambon »

Hello,

How do i clear the saved data from PixelCrushers.SaveSystem.SaveToSlot(0);

1) Lets say what do i do to clear only slot (0)

2) and to clear all slots saved?
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Clear Saved Data

Post by Tony Li »

Hello,
jambon wrote: Wed May 29, 2019 5:00 pm1) Lets say what do i do to clear only slot (0)
Use PixelCrushers.SaveSystem.DeleteSavedGameInSlot:

Code: Select all

PixelCrushers.SaveSystem.DeleteSavedGameInSlot(0);
jambon wrote: Wed May 29, 2019 5:00 pm2) and to clear all slots saved?

Code: Select all

for (int i = 0; i < MAX_SLOTS_YOU_PLAN_TO_USE; i++)
{
    PixelCrushers.SaveSystem.DeleteSavedGameInSlot(i);
}
Post Reply