Unity Issue Tracker - Scene Asset Bundles are not unloaded when UnloadAllAssetBundles(true) method is called
Fixed
UUM-13510
Scene Asset Bundles are not unloaded when UnloadAllAssetBundles(true) method is called
Unity: Asset Bundles
Fixed
2023.2.X
2023.1.X
2022.2.X
Won't Fix
2022.1.X
2021.3.X
2020.3.X
Fixed issue where UnloadAllAssetBundles does not unload scene bundles.
Calling AssetBundle.UnloadAllAssetBundles() will now also unload AssetBundles containing Scenes. In addition, AssetBundle.GetAllLoadedAssetBundles() will now include Scene AssetBundles in the list that it returns.
Fixed issue where UnloadAllAssetBundles does not unload scene bundles.
No backport planned. Scene bundles will need to be explicitly unloaded using AssetBundle.Unload.
No backport planned. Scene bundles will need to be explicitly unloaded using AssetBundle.Unload.
Steps to reproduce:
1. Open the user’s attached project
2. In the main Toolbar click Repro issue > Build bundle
3. Click Repro issue > Load bundle
4. Again click Repro issue > Load bundle
5. Observe the Console window
Expected result: Asset Bundles are unloaded and no error messages are thrown to the console
Actual result: “The AssetBundle 'StreamingAssets\scenebundle' can't be loaded because another AssetBundle with the same files is already loaded.“ error is thrown to the console
Note: “Build bundle“ option fails when using Unity 2022.1.14f1 and above, but if the bundles were built using another version the main issue is still reproducible
Prioritise and Follow this issue
Have a workaround or additional info about this issue?