移动平台各种路劲总结
2016-06-27 12:39
162 查看
string loadPath = "file:///" + Application.persistentDataPath + "/" + info.path + djResPostfix;
WWW www = new WWW(loadPath);
yield return www;
if(www.error == null && www.assetBundle.mainAsset != null)
{
Debug.Log("end _loadResByPath" + loadPath);
}
oneResLoadInfo.resObj = www.assetBundle.mainAsset;
oneResLoadInfo.isLoadEnd = true;
www.assetBundle.Unload(false);
www = null;
Andriod和Ios平台读取persistentDataPath目录
#if UNITY_EDITOR
string filepath ="file:///" + Application.streamingAssetsPath + "/AngerHeroIcon/" + ID + ".png";
#elif UNITY_IPHONE
string filepath = "file:///" + Application.streamingAssetsPath+"/AngerHeroIcon/" + ID + ".png";
#elif UNITY_ANDROID
string filepath = Application.streamingAssetsPath+"/AngerHeroIcon/" + ID + ".png";
#endif
Andriod和Ios平台读取streamingAssetsPath 目录
WWW www = new WWW(loadPath);
yield return www;
if(www.error == null && www.assetBundle.mainAsset != null)
{
Debug.Log("end _loadResByPath" + loadPath);
}
oneResLoadInfo.resObj = www.assetBundle.mainAsset;
oneResLoadInfo.isLoadEnd = true;
www.assetBundle.Unload(false);
www = null;
Andriod和Ios平台读取persistentDataPath目录
#if UNITY_EDITOR
string filepath ="file:///" + Application.streamingAssetsPath + "/AngerHeroIcon/" + ID + ".png";
#elif UNITY_IPHONE
string filepath = "file:///" + Application.streamingAssetsPath+"/AngerHeroIcon/" + ID + ".png";
#elif UNITY_ANDROID
string filepath = Application.streamingAssetsPath+"/AngerHeroIcon/" + ID + ".png";
#endif
Andriod和Ios平台读取streamingAssetsPath 目录
相关文章推荐
- 一天一条Linux指令-mount
- wsimport命令讲解
- <Introduction to Java Programming 6th Ed> Note 01
- IOS loaded the "XXXXXView" nib but the view outlet was not set.' 解决办法
- Android EventBus解析
- 2016"百度之星" - 资格赛(Astar Round1)Problem C --java代码
- 实时操作系统
- 使用命令wsimport构建WebService客户端
- 小马哥---高仿苹果6s 主板型号 T618 9900真实6571芯片刷机拆机主板多图展示
- Objective-C用讯飞SDK实现语音识别
- Xcode 8.0 新特性 & Swift 3.0 增加的变动
- ffmpeg-20160617-git-bin.7z ffmpeg-20160626-git-bin.7z
- MySQL 一表中字段内容是用逗号分隔的 另一表含有对应数据的两表联合查询
- 安卓日记——RecyclerView进阶(下拉上拉刷新和万能Adapter)
- java 调用 wsdl形式的webservice 示例
- Linux下配置iSCSI服务器,实现资源共享
- 添物零基础到大型全栈架构师 服务器架构及实战(架构篇)- 概述
- 添物零基础到大型全栈架构师 服务器架构及实战(架构篇)- 概述
- 常见算法:C语言求最小公倍数和最大公约数三种算法
- 本地通知启动 app 的状态