public static void UnloadAssets(OnUnloadFinished finishedCallback)
 {
     if (loader != null)
     {
         loader.UnloadAssets(finishedCallback);
     }
 }
Example #2
0
        public void UnloadAssets(OnUnloadFinished finishedCallback)
        {
            unloadFinishedCallbacks.Add(finishedCallback);
            if (unloadOperation != null)
            {
                return;
            }

            GC.Collect();
            GC.Collect();
            unloadOperation = Resources.UnloadUnusedAssets();

            UnloadUnusedAssets();
        }