Update AssetBundleGrouper

This commit is contained in:
hevinci
2022-04-02 18:34:46 +08:00
parent 2b95a1eb9d
commit 528eccbd9e
12 changed files with 264 additions and 94 deletions
@@ -35,6 +35,21 @@ namespace YooAsset.Editor
public string AssetTags = string.Empty;
/// <summary>
/// 检测配置错误
/// </summary>
public void CheckConfigError()
{
if(AssetDatabase.LoadAssetAtPath<UnityEngine.Object>(CollectPath) == null)
throw new Exception($"Invalid collect path : {CollectPath}");
if (AssetBundleGrouperSettingData.HasPackRuleName(PackRuleName) == false)
throw new Exception($"Invalid {nameof(IPackRule)} class type : {PackRuleName}");
if (AssetBundleGrouperSettingData.HasFilterRuleName(FilterRuleName) == false)
throw new Exception($"Invalid {nameof(IFilterRule)} class type : {FilterRuleName}");
}
/// <summary>
/// 获取打包收集的资源文件
/// </summary>