Update AssetBundleGrouper

优化了资源分组配置保存策略
This commit is contained in:
hevinci
2022-04-09 12:02:02 +08:00
parent f38d663e9d
commit d2d6d2ad14
2 changed files with 31 additions and 17 deletions
@@ -152,7 +152,12 @@ namespace YooAsset.Editor
Debug.LogError(e.ToString());
}
}
public void OnDestroy()
{
if (AssetBundleGrouperSettingData.IsDirty)
AssetBundleGrouperSettingData.SaveFile();
}
// 刷新窗体
private void RefreshWindow()
{
@@ -222,7 +227,7 @@ namespace YooAsset.Editor
}
private void AddGrouperBtn_clicked()
{
AssetBundleGrouperSettingData.CreateGrouper("Default Grouper", string.Empty, string.Empty, true);
AssetBundleGrouperSettingData.CreateGrouper("Default Grouper", string.Empty, string.Empty);
FillGrouperViewData();
}
private void RemoveGrouperBtn_clicked()