- Home /
 
 
               Question by 
               PhiseG1 · May 10, 2016 at 02:20 PM · 
                assetbundleassetbundlesasset bundlesasset bundle  
              
 
              AssetBundle - Broken link between Scene and Assets
Hello everybody,
I'm migrating to Unity 5.3 (from 4.6) and in my solution I use assetbundles (one for scenes and one for assets).
Previously assetbundles where loaded at the right place in the scene, nothing to do, I was happy. Since I implement new system I'm having troubles when I load my scene from bundle and then my assets (from the other bundle), the scene is black... none of assets are visible => "(missing sprite)"
Any idea please ? (i'm really stuck :/)
Code example: (first call for a Assets bundle then for Scene bundle)
 using (WWW download = WWW.LoadFromCacheOrDownload(bundleURL, Hash128.Parse(m_BundleInfo.Hash)))
 [...]
 if(bundleType == EBundleType.Assets)
                     {
                         //Add game/assets to dictionnary
                         UnityEngine.Object[] assets = bundle.LoadAllAssets();
                         foreach (UnityEngine.Object asset in assets)
                             UnityEngine.Object.DontDestroyOnLoad(asset);
 
                         AssetBundleHelper.BundleCacheContainer.Add(m_GameName, assets);
 
                         // Unload the AssetBundles compressed contents to conserve memory
                         bundle.Unload(false);
                     }
                     else // if scene bundle
                         bundle.LoadAllAssets();
 
              
               Comment
              
 
               
              Your answer