Does androids persistent data path get overwritten with updates? — Oculus
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Does androids persistent data path get overwritten with updates?

TrevJTTrevJT Posts: 44
Brain Burst

Hi I need to update my game and players have in-game money. Is it safe in the persistent data path?

I could probably test myself... wanted to see if anyone has experience with it?

I'm using this method in Unity:

    public void Save()

    {

        BinaryFormatter bf = new BinaryFormatter();

        FileStream file = File.Create(Application.persistentDataPath + "/gamedata.dat");

        gamedat data = new gamedat();

 

        data.money= money;

      

        bf.Serialize(file, data);

        file.Close();

    }

Sign In or Register to comment.