Quantcast
Channel: Questions in topic: "assetbundles"
Viewing all articles
Browse latest Browse all 312

AssetBundle - Broken link between Scene and Assets

$
0
0
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();

Viewing all articles
Browse latest Browse all 312

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>