Search Unity

Assetbundle not loading after updating unity

Discussion in 'Asset Bundles' started by Velawoods, May 1, 2018.

  1. Velawoods

    Velawoods

    Joined:
    Apr 30, 2018
    Posts:
    5
    Hello,

    I have update my project from unity 5.2.5 to Unity 2017.3.1p4 and after resolving all errors. When I try to run my game and try load asset bundle from my local directory it freezes. Basically AssetBundleRequest.isDone is always false. My code is working fine in unity 5.2.5 and now I am unable to understand what happening here. I have build asset bundle with unity 2017.3.1p4 still its not working.

    1. LoadedAssetBundle bundle = AssetBundleManager.GetLoadedAssetBundle (m_AssetBundleName, out m_DownloadingError);
    2. if(string.IsNullOrEmpty(m_DownloadingError) == false)
    3. {
    4. Debug.LogError("Asset bundle download error: " + m_AssetBundleName + " - " + m_DownloadingError);
    5. return false;
    6. }
    7. if (bundle != null)
    8. {
    9. m_Request = bundle.m_AssetBundle.LoadAssetAsync (m_AssetName, m_Type);
    10. ***Debug.Log (m_Request + " " + m_Request.isDone);***
    11. if (m_Request != null && m_Request.isDone)
    12. {
    13. AssetBundleManager.AssetBundleManifestObject = GetAsset<AssetBundleManifest>();
    14. return false;
    15. }
    16. }
    17. return true;
     
    Last edited: May 1, 2018