Save/Load Progress?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
makovetksyi
Posts: 13
Joined: Fri Sep 22, 2023 7:35 pm

Save/Load Progress?

Post by makovetksyi »

Hi guys, sorry - maybe it is a stupid quiestion, but I did not find an answer in guides and FAQ :)

How can I get progress of Save/Load when I use aveSystem.SaveGameToSlot(slotNumber) / saveSystem.LoadGameFromSlot(slotNumber) ?
Does someone know that?

Thank you!
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save/Load Progress?

Post by Tony Li »

Hi,

Loading a saved game is a blocking process. It's either done or not done. There's no intermediate progress. By default, it will start, wait one frame to allow status UIs to update, and then it will pause the game until the loading is done.

If you're loading a scene, you can check SaveSystem.currentAsyncOperation to get the scene loading progress.

When you save a game, you can save as a blocking process using SaveSytem.SaveToSlotImmediate(). However, by default it uses an asynchronous process, and you can check it with SaveSystem.storer.progress. This will start, wait one frame to allow status UIs to update, and then it will continue in the background. So don't check the progress property until after the first frame.
makovetksyi
Posts: 13
Joined: Fri Sep 22, 2023 7:35 pm

Re: Save/Load Progress?

Post by makovetksyi »

makovetksyi wrote: Thu Sep 28, 2023 10:37 am Hi guys, sorry - maybe it is a stupid quiestion, but I did not find an answer in guides and FAQ :)

How can I get progress of Save/Load when I use aveSystem.SaveGameToSlot(slotNumber) / saveSystem.LoadGameFromSlot(slotNumber) ?
Does someone know that?

Thank you!
Thanks mate!
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save/Load Progress?

Post by Tony Li »

Glad to help!
Post Reply