相信大家都用过Unity3D 的 Application.persistentDataPath
它对应的是 移动设备的可读写路径。
在Android设备上,其实对应的是两个路径。对应的路径 JAVA APL是
一个是外部储存的路径:getApplicationContext().getExternalFilesDir(null).getPath()
还有一个是内部的路径:getApplicationContext().getFilesDir().getPath()
一般Unity3D 默认对应的是 外部储存环境也就是这个 apl: getApplicationContext().getExternalFilesDir(null).getPath()
在IOS设备上 对应的路径 OC APL是: