Relative Content

Tag Archive for unity-game-engineassetbundle

Can Resources.UnloadUnusedAssets unload assets loaded from AssetBundle?

After reading the Unity documentation, I have learned that assets loaded from the Resources folders using Resources.Load* can be unloaded from RAM using Resources.UnloadUnusedAssets. However, I’m unsure if I can also unload assets loaded from AssetBundles using AssetBundle.Load by calling Resources.UnloadUnusedAssets. The description of Resources.UnloadUnusedAssets states that it “unloads assets that are not used.” Therefore, if assets instances created or clone from AssetBundles become unused, can they be unloaded from RAM by using Resources.UnloadUnusedAssets?