I used to be bale to store my save game data inside a TXT file in the apps Documents directory, but since upgrading to Unity iPhone 1.6 I get the follow error when trying this…
Unhandled Exception: System.UnauthorizedAccessException: Access to the path "/var/mobile/Applications/D82DA52A-7F0C-431D-8DA1-5B6A9E87E521/circuitdefenders.app/Data/SaveGame.txt" is denied.
I get the same if I try the Documents folder too… So, where can we now save our game data?
Also tried…
Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path "/var/mobile/Applications/5B155FED-4B20-46F6-A8FB-9AE18A3D1F2B/circuitdefenders.app/Data/Documents/SaveGame.txt".
and
Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path "/var/mobile/Applications/5B155FED-4B20-46F6-A8FB-9AE18A3D1F2B/circuitdefenders.app/Documents/SaveGame.txt".
Ok, so it looks like now with the *.app appname being appended to the Application.dataPath string now I have to strip it back off myself to get back to the old Application.dataPath string?
Hrm, couldn’t this Application.dataPath var be left alone and a new one added like Application.dataPathFull ?
Seems to break functioning code for no real good reason.