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!
Save/Load Progress?
Re: Save/Load Progress?
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.
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.
-
- Posts: 13
- Joined: Fri Sep 22, 2023 7:35 pm
Re: Save/Load Progress?
Thanks mate!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!