update cache system

新增方法ResoucePackage.ClearAllCacheFilesAsync()
This commit is contained in:
hevinci
2023-05-12 14:30:08 +08:00
parent 812c46adeb
commit e6397559ff
5 changed files with 101 additions and 2 deletions
@@ -157,6 +157,14 @@ namespace YooAsset
return result;
}
/// <summary>
/// 获取所有的缓存文件
/// </summary>
public static List<string> GetAllCacheGUIDs(ResourcePackage package)
{
var cache = GetOrCreateCache(package.PackageName);
return cache.GetAllKeys();
}
private static EVerifyResult VerifyingInternal(string filePath, long fileSize, string fileCRC, EVerifyLevel verifyLevel)
{