0
我嘗試以負荷資產下面的代碼從我的服務器,但我可以Unity3d的UnknownHostException
using (WWW www = WWW.LoadFromCacheOrDownload (url, version)) {
while (!www.isDone) {
progress = www.progress;
yield return null;
}
if (www.error != null) {
throw new Exception ("WWW download:" + www.error + url);
callBack (false, www);
} else {
AssetBundleRef abRef = new AssetBundleRef (url, version);
abRef.assetBundle = www.assetBundle;
dictAssetBundleRefs.Add (keyName, abRef);
callBack (true, www);
}
AssetBundleManager.Unload (url, version, false);
}
,但如果我試圖改變服務器URL它的正常工作。
請幫忙!!!
它的工作在統一編輯器,但Android手機不是。 –
Unity3dD的正確標記是#unity3d – aggsol