I’m loading AudioClips and Texture2D from Resources a lot.
Do I need to Destroy() them when I no longer need them? Is it the same thing to set the variable holding them to null?
Or how do I make sure everything is destroyed when I no longer need it?
And the correct answer is: You need to call Resources.UnloadUnusedAssets() or assets loaded from resources will stay in memory FOREVER! There should really be a huge red warning-box on all the documentation-pages about Resources stating this!
Hi,
Check this Answer because Resources.UnloadUnusedAssets() wasn’t really doing the job for me on level loading.
Is the correct answer still valid for current version ? (5.5.0f3). Or there is a smarter GC system already implemented ?