Unity3d Unity在使用WWW.LoadFromCacheOrDownload时崩溃
我的代码如下Unity3d Unity在使用WWW.LoadFromCacheOrDownload时崩溃,unity3d,crash,Unity3d,Crash,我的代码如下 using (WWW _commonFilesDOwnloader = WWW.LoadFromCacheOrDownload ("https://example.com/Testing/bundle", 1)) { while (!_commonFilesDOwnloader.isDone) { Debug.Log ("Progress " + _commonFilesDOwnloader.progress); y
using (WWW _commonFilesDOwnloader = WWW.LoadFromCacheOrDownload ("https://example.com/Testing/bundle", 1)) {
while (!_commonFilesDOwnloader.isDone) {
Debug.Log ("Progress " + _commonFilesDOwnloader.progress);
yield return null;
}
if (_commonFilesDOwnloader.error == null) {
//file downloaded completely
AssetBundle _comonBundle = _commonFilesDOwnloader.assetBundle;
AssetBundleRequest _comonBundleReq = _comonBundle.LoadAllAssetsAsync ();
yield return _comonBundleReq;
Debug.Log ("Done Loading");
}
}
它下载了全部内容,但在if语句中崩溃了,我不知道具体在哪里。
有人能告诉我在上面的代码中我做错了什么吗?什么操作系统?Unity的哪个版本?我在Mac上使用Unity 5.3.2,它有时会崩溃,但当我在ios设备上运行时,它总是崩溃。我想问题出在这些线路上。。AssetBundlereRequest _-comonBundleReq=_-comonBundle.LoadAllAssetAsync();收益率收益率;有人说这是Unity中一个未解决的错误。什么操作系统?Unity的哪个版本?我在Mac上使用Unity 5.3.2,它有时会崩溃,但当我在ios设备上运行时,它总是崩溃。我想问题出在这些线路上。。AssetBundlereRequest _-comonBundleReq=_-comonBundle.LoadAllAssetAsync();收益率收益率;有人认为这是Unity中一个尚未解决的bug。