Search Unity

Saving help please :)

Discussion in 'Scripting' started by TatrySight, Feb 6, 2016.

  1. TatrySight

    TatrySight

    Joined:
    Oct 8, 2015
    Posts:
    24
    Hello guys, I am building game for mobile devices and I need save system in game or something to save it anywhere and anytime without any buttons because if you somebody turn off that game and turn off his/her phone I want that my character will be in this same position and in this scene or even if scene will be saved its enough, Can somebody help me with automatically saving for that game please?:)
     
  2. jessee03

    jessee03

    Joined:
    Apr 27, 2011
    Posts:
    729
    aer0ace likes this.
  3. RavenOfCode

    RavenOfCode

    Joined:
    Apr 5, 2015
    Posts:
    869
    To add to that you can use OnApplicationQuit () to save your game when they exit. An autosave every few mins would probably be a good idea too.
     
    aer0ace likes this.