Page 1 of 1

Clear Saved Data

Posted: Wed May 29, 2019 5:00 pm
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?

Re: Clear Saved Data

Posted: Wed May 29, 2019 6:22 pm
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);
}