- Home /
Assets not unloading on scene change in Android (works on iOS)
So I've got a strange problem, I can't seem to unload assets between scenes in my app. On iOS everything is fine, but on Droid the memory usage just keeps going up and the profiler shows that the NGUI atlases from each scene are all in memory at once.
I load new scenes through a loading screen scene (to ensure minimal assets are required) and there are numerous calls to Resources.UnloadUnusedAssets and GC.Collect between levels. None of my assets appears to ever unload however.
I'm trying to figure out why this happens only on Android. Any clues would be welcome.
Answer by whydoidoit · Jun 21, 2013 at 09:16 AM
On Droid it appears to be more sensitive to static references to objects than it does on iOS. I had some third party code that didn't clear up static Singletons properly and that was causing a Droid issue.
Your answer
Follow this Question
Related Questions
Resources.UnloadUnusedAssets() doesn't always work. How can I find out why? 0 Answers
How to externally load assets into Unity projects for android 1 Answer
Can't access assets folder on Android.,For Android, file doesn't exist in assets folder for apk file 1 Answer
How can I get the full path of an asset on Android? 1 Answer