To create a save system in your game, add a SaveManager script to any object in your scene.
In this script you can choose which parameters will be saved, as well as enable autosave mode.
- (Load) Every time you load a scene with the SaveManager component in it, all saved progress is loaded and applied (depending on which parameters you have activated).
- (Save) To save your progress, you need to call the save function (anywhere and at any time):
- (Clear) To clear all progress, call the following function:
If you need to save some other parameters, use the prepared CustomData class in the SaveManager script.
Also, you need to apply the loaded parameters after loading the save files.
By default, all data is saved to JSON files without encryption. If you want to expand these features, then activate an integration with the Easy Save system.