Unity中的Path对应各平台中的Path
来源:互联网 发布:哈登15 16赛季数据 编辑:程序博客网 时间:2024/03/28 19:18
最近使用unity读取各个平台路径,特别对移动平台路径的处理
简直是各种蛋疼 各种坑
在此与大家分享下
IOS:Application.dataPath : Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/xxx.app/DataApplication.streamingAssetsPath : Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/xxx.app/Data/RawApplication.persistentDataPath : Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/DocumentsApplication.temporaryCachePath : Application/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Library/Caches
android:Application.dataPath : /data/app/xxx.xxx.xxx.apkApplication.streamingAssetsPath : jar:file:///data/app/xxx.xxx.xxx.apk/!/assetsApplication.persistentDataPath : /data/data/xxx.xxx.xxx/filesApplication.temporaryCachePath : /data/data/xxx.xxx.xxx/cache
Windows Web Player:Application.dataPath : file:///D:/MyGame/ (即导包后保存的文件夹,html文件所在文件夹)Application.streamingAssetsPath :Application.persistentDataPath :Application.temporaryCachePath :
注意:
Application.persistentDataPath 才是移动端可用的保存生成文件的地方
放到resource中打包后不可以更改了
放到Application .dataPath中移动端是没有访问权限的
0 0
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- 《Unity中的Path对应各平台中的Path》
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- Unity中的Path对应各平台中的Path
- php 框架选择(我对各框架的了解还不够深入,后续再完善)
- dwz IE兼容问题之图片回显与下拉滚动条消失
- leetcode134. Gas Station
- 好玩的editText
- 设计模式——工厂模式
- Unity中的Path对应各平台中的Path
- 数据分析随记
- One-by-one to solve the Sequence Problem (1)
- WDTabbarController
- 二叉排序树的操作
- poj 1050
- Python基本语法笔记
- 浅析Java中的final关键字
- BoxLayout边框布局