Replace FileManager.cs getPlatformPath () method with the following script:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
//get the current platform path public static string getPlatformPath () { string paltformPath = null; if (PlatformChecker.IsAndroid ()) { paltformPath = Application.persistentDataPath + "/"; } else if (PlatformChecker.IsIOS ()) { string dir = Application.persistentDataPath + "/Documents/"; if (!Directory.Exists(dir)) { Directory.CreateDirectory(dir); } paltformPath = dir; } else { paltformPath = Application.dataPath + "/"; } return paltformPath; } |