I'm getting this error:
You are trying to load data from a www stream which had the following error when downloading. Could not resolve host: somehost (Domain name not found) UnityEngine.WWW:get_assetBundle() $:MoveNext() (at Assets/Scripts/Screens/A_TESTDOWNLOAD.js:12)
I'm using this small chunk of example code:
var download : WWW;
var url = "http://somehost/somepath/someassetbundle.assetbundle";
download = new WWW (url);
yield download;
assetBundle = download.assetBundle;
if (assetBundle != null) {
// Alternatively you can also load an asset by name (assetBundle.Load("my asset name"))
var go : Object = assetBundle.mainAsset;
if (go != null)
instanced = Instantiate(go);
else
Debug.Log("Couldnt load resource");
} else {
Debug.Log("Couldnt load resource");
}
And the content in my URL can be accessed from my browser. Can anyone point me to the problem, any possible cause ? or any proper ways of detecting the problem ?, I'm clueless.
Thanks.
Hi, I have same error and your the only one who post something like mine. How do you solved it ?
– AntoineDev