So, I’ve been using the Application.persistentDataPath as the storage for my games save files which works fine and updates don’t mess with the files. However, on application uninstall the save files are wiped from the folder (the game is Android only at the moment). I’d like to make them persist. So, if the user decides to reinstall with a future update they’ll still have the progress from their previous play time, and the files aren’t very large. so that’s not an issue.
Is there a way to make the files ‘off-limits’ to the folder wipe?
Such as:
- a sub-directory within the Application.persistentDataPath folder?
- a new directory in the apps path other than ‘files’?
- some obscure Unity/Android option?
Or, should I move the save location to a completely new place outside of the persistentDataPath?
If this is the better option, are there ‘best practices’ when mucking about with unmanaged directories in an Android system?