Can you give me an example of Auto Save in a script? The best I've managed is to get the save game menu to open but I just want it to save directly with no menu.

Thanks!
  • edited June 2017
    You can save to the current auto save slot like this:
    ORK.SaveGame.Save(SaveGameHandler.AUTOSAVE_INDEX - ORK.Game.AutoSaveSlot);
    ORK.SaveGame.CreateInfos();

    CreateInfos is called to update the save game info data when displaying save game menus :)

    You can also use Save Point components for this stuff, e.g. using Autostart to automatically save when entering the scene, or Trigger Enter to set up checkpoints, etc.
    Post edited by gamingislove on
    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 patreon.com!
  • Thanks! This will help a lot! I use triggers and save points most of the time but sometimes I make changes in a script that I want to save right away.
Sign In or Register to comment.