Unity3D Application.persistentDataPath 移动设备对应目录

相信大家都用过Unity3D 的 Application.persistentDataPath

它对应的是 移动设备的可读写路径。

在Android设备上,其实对应的是两个路径。对应的路径 JAVA APL

一个是外部储存的路径:getApplicationContext().getExternalFilesDir(null).getPath()

还有一个是内部的路径:getApplicationContext().getFilesDir().getPath()

一般Unity3D  默认对应的是 外部储存环境也就是这个 apl:  getApplicationContext().getExternalFilesDir(null).getPath()

在IOS设备上 对应的路径 OC  APL是:

猜你喜欢

转载自blog.csdn.net/nicepainkiller/article/details/81188629