How can I save/load games via code?

Also, what information is saved exactly and is there a way to selectively save information and for example save just the player progression or just the enemies/allies?
  • What is saved is set up in UI > Save Game Settings in the Save Data Settings.

    You can access the save games via Maki.SaveGame, e.g. to save:
    And to load:

    index is an int to define the save slot, 0 and above are regular save slots, -1 is the retry slot and -2 and below are auto save slots.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on!
Sign In or Register to comment.