|
I need to store savefiles for my game on Android, but I can't figure out what path to write to. Application.dataPath returns the path to my apk folder, but I can't write anything there. Is there some relative path I can use ../ from Application.dataPath to get to? The files should stay permanently with the app, so a cache folder would be inappropriate.
(comments are locked)
|
|
There is an example plugin that shows how retrieve the cache directory. It can easily be modified to return the persistent files directory instead (replace getCacheDir() with getFilesDir()). But as far as the script API goes there is currently (with 3.1) no support for that.
(comments are locked)
|
|
Just Use PlayerPrefs. This will this will handle everything automatically. This makes saving games really simple.
(comments are locked)
|
|
Use http://unity3d.com/support/documentation/ScriptReference/Application-persistentDataPath.html
(comments are locked)
|
