cancel
Showing results for 
Search instead for 
Did you mean: 

Does androids persistent data path get overwritten with updates?

TrevJT
Protege

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();



    }

0 REPLIES 0