Get count of saves

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
timbecile
Posts: 110
Joined: Mon Mar 12, 2018 11:00 pm

Get count of saves

Post 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.
User avatar
Tony Li
Posts: 21080
Joined: Thu Jul 18, 2013 1:27 pm

Re: Get count of saves

Post 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.
Post Reply