示例#1
0
 /// <summary>
 /// 释放场景所有AB包
 /// </summary>
 /// <param name="sceneName"></param>
 public void DisposeAllAssetBundle(string sceneName)
 {
     if (mABManagerDict.ContainsKey(sceneName))
     {
         IABSceneManager sceneManager = mABManagerDict[sceneName];
         sceneManager.DisposeAllBundle();
         System.GC.Collect();
     }
 }
 //释放一个场景的全部bundle
 public void UnloadAllAssetBundle(string sceneName)
 {
     if (loadManager.ContainsKey(sceneName))
     {
         IABSceneManager tmpManager = loadManager[sceneName];
         tmpManager.DisposeAllBundle();
         System.GC.Collect();
     }
 }