- Home /
Question by
Sushant Ingle · Aug 14, 2014 at 02:19 PM ·
assetbundlememory-leak
Unload Assetbundle
I am facing problem with unloading assetbundle. I have created couple of assetbundles (each for level). When i want to start second level, i unload first assetbundle by using unload(true). also i have tried Caching.cleanCache() but still its not deallocating memory allocated for first assetbundle. I am not getting where i am going wrong.
Here are the things i have done :
1. Loaded asset bundle with www.load(url).
2. loaded prefabs in assetbundle and assigned it to script to use it runtime.
when i start loading 2nd level
3. remove attached prefabs in script. assetbundle.unload(true); Caching.cleanCache(); Load assetbundle for second level
4. repeat the same procedure.
Still its not deallocating memory.
Comment
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Asset bundle memory leak and exception 1 Answer
Load AssetBundles on Android device 1 Answer
Why is there no such thing as a LoadAllAsync method? 1 Answer