Hello everyone. I’m trying create a patching system for my game using Asset bundles. I made an asset bundle and an crossdomain.xml file and uploaded them to my server provider root folder. Also I added the link to the xml file in assets > editor. Then in unity i’m trying to download it using this script:
#pragma strict
var patchLink : String;
function Start (){
// "http://myserver.com/myassetBundle.unity3d"
var www = WWW.LoadFromCacheOrDownload (patchLink, 1);
yield www;
if (!String.IsNullOrEmpty(www.error)){
Debug.Log (www.error);
return;
}else
print ("success");
var myLoadedAssetBundle = www.assetBundle;
var asset = myLoadedAssetBundle.mainAsset;
Instantiate(asset);
}
function Update () {
}
And I get this error:
403 Forbidden
I have been looking for an answer for like 2 days. Could you please help me.
~Alexander