Unity四种路径总结

四种路径的权限:                                           

Application.dataPath 包含游戏数据文件夹的路径(只读)
Application.persistentDataPath 包含一个持久数据目录的路径(可读可写)
Application.streamingAssetsPath  包含一个到StreamingAssets文件夹的路径。(读)
Application.temporaryCachePath 包含一个临时数据/缓存目录的路径(只读)。

Windows和Android两个平台路径的对比:

Windows:

D:/UnityCode/LianXian/Assets
C:/Users/k/AppData/LocalLow/DefaultCompany/LianXian
D:/UnityCode/LianXian/Assets/StreamingAssets
C:/Users/k/AppData/Local/Temp/DefaultCompany/LianXian

android:

/data/app/com.smart.HeYouX20121-1/base.apk? 
/storage/emulated/0/Android/data/com.smart.HeYouX20121/files? 
jar:file:///data/app/com.smart.HeYouX20121-1/base.apk!/assets? 
/storage/emulated/0/Android/data/com.smart.HeYouX20121/cache?

游戏包名: com.smart.HeYouX20121

在android平台上APK自己的数据一般放在/com.smart.HeYouX20121/里面。

如果你感兴趣,你可以把你妹妹介绍给我
原文地址:https://www.cnblogs.com/plateFace/p/4700754.html