0
\$\begingroup\$

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

\$\endgroup\$

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.