private void SetAllConfig() { if (assets == null) { ShowNotification(new GUIContent("请先“查找所有资源”")); return; } assetImportConfig.SaveConfig(); AssetImportPost.OnPostprocessAllAssets(assets.ToArray(), new string[0], new string[0], new string[0]); changeConfigAssets.Clear(); ShowNotification(new GUIContent("设置成功")); }
private void SaveConfig() { assetImportConfig.SaveConfig(); if (changeConfigAssets.Count > 0) { AssetImportPost.OnPostprocessAllAssets(changeConfigAssets.ToArray(), new string[0], new string[0], new string[0]); changeConfigAssets.Clear(); } if (EditorUtility.DisplayDialog("提示", "保存成功,是否提交配置", "提交", "取消")) { Process.Start(Application.dataPath + "/Editor/AssetImportConfig/ConfigFile"); } }