Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Help with AssetBundleManager :" Failed downloading bundle Windows from... "

Discussion in 'Asset Bundles' started by BlueRain01, Oct 29, 2017.

  1. BlueRain01

    BlueRain01

    Joined:
    Aug 22, 2010
    Posts:
    86
    Hi All!

    I'm trying to use AssetBundleManager to load a scene from a server , i uploaded the bundle Scene-Bundle (that we found in the example prject ) just for testing .
    this is the Url : https://dzmoob.000webhostapp.com/Assetbundles/Windows/Windows
    i comment out this line in the LoadScene.CS script : //

    AssetBundleManager.SetDevelopmentAssetBundleServer();

    and now i'm using

    : //AssetBundleManager.SetSourceAssetBundleURL("https://dzmoob.000webhostapp.com/Assetbundles/")

    but i got this error :
    Failed downloading bundle Windows from https://dzmoob.000webhostapp.com/Assetbundles/Windows/Windows:
    UnityEngine.Debug:LogError(Object)
    AssetBundles.AssetBundleLoadAssetOperationFull:IsDone() (at Assets/AssetBundleManager/AssetBundleLoadOperation.cs:190)
    AssetBundles.AssetBundleLoadOperation:MoveNext() (at Assets/AssetBundleManager/AssetBundleLoadOperation.cs:17)
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

    Why i'm getting this error ? what i'm doing wrong here ? is it something to do with the hosting ? i'm just using this for test .

    here's my modified version of the script , i'm just using some UI .
    Thank you all .
     

    Attached Files:

  2. nilsk123

    nilsk123

    Joined:
    Dec 13, 2016
    Posts:
    19
    it's probably trying to download the assetbundle manifest, which is a bundle named after the current build target (in your case windows). The manifest is automatically generated by the assetbundle build pipe line, and will just be called Windows.

    What it's expecting to find is a root folder which corresponds to your build target (Windows), and in there the manifest which will also be called windows. So remove the nested 'Windows' folder, and upload all bundles including the manifest to the root 'Windows' folder.
     
  3. BlueRain01

    BlueRain01

    Joined:
    Aug 22, 2010
    Posts:
    86
  4. BlueRain01

    BlueRain01

    Joined:
    Aug 22, 2010
    Posts:
    86
    Anyone ?