Update PatchSystem
移除YooAssets.ClearAllCacheFiles() 新增YooAssets.ClearUnusedCacheFiles();
This commit is contained in:
@@ -36,7 +36,7 @@ namespace YooAsset
|
||||
/// 人类可读的版本信息
|
||||
/// </summary>
|
||||
public string HumanReadableVersion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 资源列表(主动收集的资源列表)
|
||||
/// </summary>
|
||||
@@ -217,6 +217,19 @@ namespace YooAsset
|
||||
return BundleDic.TryGetValue(bundleName, out result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 是否包含资源文件
|
||||
/// </summary>
|
||||
public bool IsIncludeBundleFile(string fileName)
|
||||
{
|
||||
foreach (var patchBundle in BundleList)
|
||||
{
|
||||
if (patchBundle.FileName == fileName)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 序列化
|
||||
|
||||
Reference in New Issue
Block a user