Update AssetBundleBuilder

增加配置保存按钮。
This commit is contained in:
hevinci
2022-07-18 12:05:40 +08:00
parent 669339d5b4
commit ca3c011f34
3 changed files with 46 additions and 2 deletions
@@ -19,6 +19,11 @@ namespace YooAsset.Editor
}
}
/// <summary>
/// 配置数据是否被修改
/// </summary>
public static bool IsDirty { set; get; } = false;
/// <summary>
/// 加载配置文件
/// </summary>
@@ -34,6 +39,7 @@ namespace YooAsset.Editor
{
if (Setting != null)
{
IsDirty = false;
EditorUtility.SetDirty(Setting);
AssetDatabase.SaveAssets();
Debug.Log($"{nameof(AssetBundleBuilderSetting)}.asset is saved!");