Can anyone here confirm whether Resources.UnloadUnusedAssets runs automatically with scene load?

So what I am doing right now is, at scene start I load my asset bundle, pick an object and instantiate then unload. Then when scene restarts(replay level) the same process happens. I unload the asset bundle using AssetBundle.Unload(false). Unity says setting it to false could cause issues unless you run Resources.UnloadUnusedAssets. So I wonder if Resources.UnloadUnusedAssets gets run automatically without me having to specify.

I am only scared that my previous objects from bundle will remain in memory even after unloading the bundle, causing memory issues


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.