update resource manager

pull/229/head
hevinci 2023-10-27 16:24:33 +08:00
parent bc9a4e07e2
commit 4119f02c60
1 changed files with 0 additions and 9 deletions

View File

@ -60,15 +60,6 @@ namespace YooAsset
/// 资源回收(卸载引用计数为零的资源) /// 资源回收(卸载引用计数为零的资源)
/// </summary> /// </summary>
public void UnloadUnusedAssets() 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--) for (int i = _loaderList.Count - 1; i >= 0; i--)
{ {