Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Saving data on mobile

Discussion in 'Scripting' started by Maraku Mure, May 14, 2015.

  1. Maraku Mure

    Maraku Mure

    Joined:
    May 2, 2015
    Posts:
    28
    Hi guys,
    after I saw the live training about saving data I wrote, for my own tutorial/project, a way to save the player progress...

    I wrote two functions which save / load player's data.

    Both uses binaryformetter and filestream.

    The load function is called on Awake if the saving file exists and the saving function is called with function OnApplicationQuit() (and even OnApplicationPause())

    The problem is that I builded this project for my mobile android and it doesn't not save the file....suggestions?
     
    Last edited: May 14, 2015
  2. Maraku Mure

    Maraku Mure

    Joined:
    May 2, 2015
    Posts:
    28
    My fault :|
    How noob I am.... I just wrote "OnApllicationQuit" <--- -.-'