What are the best practices for using player actioned Save and Load (buttons)?
Posted: Sat Apr 03, 2021 7:25 pm
Hello hello,
In my game the player chooses when to Save and when to Load. I am wondering how are other people doing this and if there are best practices or common ways other people chose to deal with this.
Right now my approach is this: The player can save (or load) whenever they want using a Save button. Now, I have this Save button invoke an Action (event) in which each object that needs save/load has registered to using "+=". Now, this works fine most of the time, but there can be some dependencies around where I need something loaded first. I could use the Script Order option in Unity, but I'd prefer not to modify it if I have to. Any other options?
TIA!
In my game the player chooses when to Save and when to Load. I am wondering how are other people doing this and if there are best practices or common ways other people chose to deal with this.
Right now my approach is this: The player can save (or load) whenever they want using a Save button. Now, I have this Save button invoke an Action (event) in which each object that needs save/load has registered to using "+=". Now, this works fine most of the time, but there can be some dependencies around where I need something loaded first. I could use the Script Order option in Unity, but I'd prefer not to modify it if I have to. Any other options?
TIA!