Auto Save every 5 minutes
Posted: Fri Nov 12, 2021 10:19 pm
Hello,
Right now I am only saving my prefabs/scriptable objects when the application quits. Is there a way I can autosave every few minutes or so (and this is advisable)?
I am thinking I can do something like this (pseudocode):
Also right now, I am explicitly saving all of my prefabs and scriptable objects like this:
But should I be using the codeless auto save to handle this (seems like this only works with prefabs, not with scriptable objects) if I want to save periodically? Or is there a way I can gracefully handle autosaving all of my keys via code?
Thanks,
Sarah
Right now I am only saving my prefabs/scriptable objects when the application quits. Is there a way I can autosave every few minutes or so (and this is advisable)?
I am thinking I can do something like this (pseudocode):
Code: Select all
if (FiveMinutesHavePassed) {
ES3AutoSaveMgr.Current.Save();
}
Code: Select all
ES3.Save("bug", gameObject);
Thanks,
Sarah