- Home /
Question by
Whlam · Aug 09, 2015 at 08:28 AM ·
assetbundleleak
WebStream (Clear cache)
Anybody knows, how clean cache from WebStream? Using code:
AssetBundleCreateRequest acr;
acr = AssetBundle.CreateFromMemory (memoryAssetBundle);
while (!acr.isDone) {
yield return acr;
}
assetBundle = acr.assetBundle;
obj = assetBundle.LoadAllAssets (typeof(GameObject));
assetBundle.Unload (false);
Count of loading bundles over 100. Everytime after AssetBundle.CreateFromMemory is executed, size of WebStream increases by 8 Mb
screen-1.jpg
(229.5 kB)
Comment
Answer by Sparrowfc · Dec 28, 2015 at 02:29 AM
Call Resources.UnloadUnusedAssets after bundle.Unload will help