/// <summary> /// Unloads bundle if it is loaded. /// </summary> public static void UnloadBundle(ResourceBundle bundle) { if (bundle.isLoaded) { InternalUnload(bundle); } }
private static void InternalUnload(ResourceBundle bundle) { if (FlashResources.logLevel <= LogLevel.INFO) { Debug.Log("Unloading: " + bundle.name); } _currentBundles.Remove(bundle); bundle.InternalUnload(); }