Page 1 of 1

Get count of saves

Posted: Mon May 04, 2020 11:54 am
by timbecile
Hey Tony,

is there a way to get the count of how many saves (or save slots) are in use? I looked in PixelCrushers.SaveSystem, but couldn't find a method for it.

Re: Get count of saves

Posted: Mon May 04, 2020 1:08 pm
by Tony Li
It's a little complicated because there can be gaps. For example, a player could save in slots 1, 2, and 3, and then delete the game in slot 2.

You can loop through the maximum number of slots you plan to allow in your game and check SaveSystem.HasSavedGameInSlot() for each slot.