From 4119f02c600b5c19bf167078224095ec9e8e8a6f Mon Sep 17 00:00:00 2001 From: hevinci Date: Fri, 27 Oct 2023 16:24:33 +0800 Subject: [PATCH] update resource manager --- .../YooAsset/Runtime/ResourceManager/ResourceManager.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Assets/YooAsset/Runtime/ResourceManager/ResourceManager.cs b/Assets/YooAsset/Runtime/ResourceManager/ResourceManager.cs index adaef84..ee135cd 100644 --- a/Assets/YooAsset/Runtime/ResourceManager/ResourceManager.cs +++ b/Assets/YooAsset/Runtime/ResourceManager/ResourceManager.cs @@ -60,15 +60,6 @@ namespace YooAsset /// 资源回收(卸载引用计数为零的资源) /// public void UnloadUnusedAssets() - { - // 注意:资源包之间可能存在多层深层嵌套,需要多次循环释放。 - int loopCount = 10; - for (int i = 0; i < loopCount; i++) - { - UnloadUnusedAssetsInternal(); - } - } - private void UnloadUnusedAssetsInternal() { for (int i = _loaderList.Count - 1; i >= 0; i--) {