Beispiel #1
0
    /// <summary>
    /// 释放指定场景所有包
    /// </summary>
    /// <param name="sceneName"></param>
    public void UnLoadAllAssetBundle(string sceneName)
    {
        if (sceneManagers.ContainsKey(sceneName))
        {
            IABSceneManager sceneMgr = sceneManagers[sceneName];

            sceneMgr.DisposeAllBundles();

            System.GC.Collect();
        }
    }