Replace FileManager.cs getPlatformPath () method with the following script:
//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;
}
Leave a Reply