xiji321
侠客
侠客
  • UID2476
  • 粉丝0
  • 关注2
  • 发帖数56
阅读:262回复:2

加载本地assetbundle问题

楼主#
更多 发布于:2016-10-24 11:36
unity导出ios9项目后,www不能正常使用,具体情况如下
string url = "Application.dataPath + "/Raw/" + "capsule.ab"";
WWW www = new WWW(url);
Debug.Log("hello! www!!!");
yeild return www;//执行到此处后不继续往下执行
在pc端测试没有问题!和打包没有关系,已经确认ios平台的包没问题
xcode输出日志:

2016-10-24 11:35:05.384 ProductName[1249:526412] You are using download over http. Currently unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
hello! www!!!


请问有没有大牛遇到相关问题呢?

欢迎分享

xiji321
侠客
侠客
  • UID2476
  • 粉丝0
  • 关注2
  • 发帖数56
沙发#
发布于:2016-10-24 11:58
打包代码:
[MenuItem("Custom Editor/Build AssetBundle New")]
static void BuildAssetBundleNew() {
string path = Application.dataPath + "/StreamingAssets/";
//AssetBundleBuild[] map = new AssetBundleBuild[2];

//AssetBundle[] assetMap = new AssetBundle[1];
BuildPipeline.BuildAssetBundles (path, BuildAssetBundleOptions.UncompressedAssetBundle, BuildTarget.iOS);
AssetDatabase.Refresh ();

}
托牛数字
禁止发言
禁止发言
  • UID3581
  • 粉丝0
  • 关注0
  • 发帖数12
板凳#
发布于:2017-03-09 14:52
用户被禁言,该主题自动屏蔽!
游客

返回顶部