Hi, i'm new in assets bundles, i have a 404 error downloading my bundle and i dont know why. I use this Unity tool for create my bundle (a prefab with a 3D file and relative materials), and it come out in 4 different files: bunle bundle.manifest StandaloneWindows StandaloneWindows.manifest I load it all on my website, but when i try to download the bundle i have an error (404 Not Found) Bundle Link: http://www.maxromagnoli.com/Games/ArtMapp/Bundle Script to download the bundle: Code (CSharp): using System; using UnityEngine; using System.Collections; public class CachingLoadExample : MonoBehaviour { public string bundleURL; public string assetName; public int version; void Start() { StartCoroutine(DownloadAndCache()); } IEnumerator DownloadAndCache() { // Wait for the Caching system to be ready while (!Caching.ready) yield return null; // Load the AssetBundle file from Cache if it exists with the same version or download and store it in the cache using (WWW www = WWW.LoadFromCacheOrDownload(bundleURL, version)) { yield return www; if (www.error != null) throw new Exception("WWW download had an error: " + www.error); AssetBundle bundle = www.assetBundle; if (assetName == "") Instantiate(bundle.mainAsset); else Instantiate(bundle.LoadAsset(assetName)); // Unload the AssetBundles compressed contents to conserve memory bundle.Unload(false); } // memory is freed from the web stream (www.Dispose() gets called implicitly) } } Anyone can tell me what i'm doing wrong? Thanks
Most likely either your bundle url is incorrect or version does not match. Can't tell as there are not seen in the code you posted.
I expect a file. That what you get when you access asset bundle vie browser. A 404 response is a "Not found" error that is the first clue to the problem, i.e. it can be incorrect URL, incorrect HTTP method (GET). Asset bundle is just a binary file, downloading it via WWW is no different from downloading it via web browser.
I know, i change the link and use this: http://www.maxromagnoli.com/Games/ArtMapp/StandaloneWindows/ and the error this time is: 403.14 Forbidden
I think maybe is a server issue, i go to Aruba for change some access parameters on my website, if it work we well see in a moment
We have a built in compression feature for asset bundles. You can specify compression when building a bundle.
And i have another problem: if the file has no extension, the server don't give me the authorization to download it, so i need the bundle is .rar or .zip
Does the server require extension, one of specific extensions or one of specific file formats? You can rename your asset bundle file to whatever you want, unity should load it fine as long as file contents are fine.