Yooasset add destroy methods

增加销毁机制
This commit is contained in:
hevinci
2022-06-15 18:14:04 +08:00
parent 8deb239450
commit 0b1990f040
6 changed files with 48 additions and 7 deletions

View File

@@ -63,6 +63,19 @@ namespace YooAsset
}
}
/// <summary>
/// 销毁
/// </summary>
public static void DestroyAll()
{
_loaders.Clear();
_providers.Clear();
_sceneHandles.Clear();
DecryptionServices = null;
BundleServices = null;
}
/// <summary>
/// 资源回收(卸载引用计数为零的资源)
/// </summary>