/// <summary> /// 释放一个AB包 /// </summary> /// <param name="sceneName"></param> /// <param name="bundleName"></param> public void DisposeAssetBundle(string sceneName, string bundleName) { if (mABManagerDict.ContainsKey(sceneName)) { IABSceneManager sceneManager = mABManagerDict[sceneName]; sceneManager.DisposeBundle(bundleName); } }
//释放一个bundle public void UnLoadAssetBundle(string sceneName, string bundleName) { if (loadManager.ContainsKey(sceneName)) { IABSceneManager tmpManager = loadManager[sceneName]; tmpManager.DisposeBundle(bundleName); } }
/// <summary> /// 释放一个包 /// </summary> /// <param name="sceneName"></param> /// <param name="bundleName"></param> public void UnLoadAssetBundle(string sceneName, string bundleName) { if (sceneManagers.ContainsKey(sceneName)) { IABSceneManager sceneMgr = sceneManagers[sceneName]; sceneMgr.DisposeBundle(bundleName); } }