Update AssetBundleCollector

增加配置表自我修复功能。
This commit is contained in:
hevinci
2022-09-22 11:40:30 +08:00
parent a89127df1d
commit 8cec0abf0e
6 changed files with 101 additions and 8 deletions

View File

@@ -232,7 +232,7 @@ namespace YooAsset.Editor
}
/// <summary>
/// 存储文件
/// 存储配置文件
/// </summary>
public static void SaveFile()
{
@@ -245,6 +245,18 @@ namespace YooAsset.Editor
}
}
/// <summary>
/// 修复配置文件
/// </summary>
public static void FixFile()
{
bool isFixed = Setting.FixConfigError();
if (isFixed)
{
IsDirty = true;
}
}
/// <summary>
/// 清空所有数据
/// </summary>
@@ -360,10 +372,9 @@ namespace YooAsset.Editor
}
// 资源收集器编辑相关
public static void CreateCollector(AssetBundleCollectorGroup group, string collectPath)
public static void CreateCollector(AssetBundleCollectorGroup group)
{
AssetBundleCollector collector = new AssetBundleCollector();
collector.CollectPath = collectPath;
group.Collectors.Add(collector);
IsDirty = true;
}