Search Unity

Unable to load assetbundle in Unity 5.5

Discussion in 'Asset Bundles' started by malericexordium, Nov 7, 2017.

  1. malericexordium

    malericexordium

    Joined:
    Feb 22, 2017
    Posts:
    1
    Hi everyone,

    I'm having troubles with testing AssetBundles in Unity 5.5.4f1. I'm trying to load data from a file and not from the server. I searched similar problems but could not found any related to Unity 5.5 or newer.

    Using directly AssetBundle (LoadFromFile/Async) I keep getting following error:
    Code (CSharp):
    1. Unable to open archive file: D:/Projects/AssetBundlesExample/Assets/StreamingAssets/biomebundle1
    I have imported AssetBundleManager plugin, where I have built AssetBundles and copied them from
    "AssetBundlesExample\AssetBundles\Windows" to "AssetBundlesExample\Assets\StreamingAssets".

    Later then, I tried to use AssetBundleManager. Using Simulation mode I keep getting following error:
    Code (CSharp):
    1. [AssetBundleManager] There is no asset with name "biome1" in biomebundle1
    2. UnityEngine.Debug:LogError(Object)
    3. AssetBundles.AssetBundleManager:Log(LogType, String) (at Assets/AssetBundleManager/AssetBundleManager.cs:127)
    4. AssetBundles.AssetBundleManager:LoadAssetAsync(String, String, Type) (at Assets/AssetBundleManager/AssetBundleManager.cs:602)
    If I disable simulation mode, still I have following error:
    Code (CSharp):
    1. NullReferenceException: Object reference not set to an instance of an object
    2. AssetBundles.AssetBundleManager.RemapVariantName (System.String assetBundleName) (at Assets/AssetBundleManager/AssetBundleManager.cs:372)
    In RemapVariantName, method "m_AssetBundleManifest.GetAllAssetBundlesWithVariant()" throws null reference.

    I even tried AssetBundleManager in Unity 2017.2, however many other errors occur.
    So I have multiple questions.
    • How to use correctly AssetBundles (Load from file) in Unity 5.5 or 5.6?
    • Which Unity version should I use?
    • Should I use AssetBundlesManager, low-level API or some other asset (like Remote Package Manager or Asset Bundle Magic)?
     
  2. sethi-sahil27

    sethi-sahil27

    Joined:
    Apr 8, 2016
    Posts:
    12
    Were you able to solve the issue?