Page 1 of 1

Save/Load Progress?

Posted: Thu Sep 28, 2023 10:37 am
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!

Re: Save/Load Progress?

Posted: Thu Sep 28, 2023 2:04 pm
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.

Re: Save/Load Progress?

Posted: Sat Sep 30, 2023 4:51 pm
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!

Re: Save/Load Progress?

Posted: Sat Sep 30, 2023 7:48 pm
by Tony Li
Glad to help!