From c5c6e4ae232b9a937990dd38cd033e6f6251909d Mon Sep 17 00:00:00 2001 From: hevinci Date: Fri, 10 Feb 2023 15:16:24 +0800 Subject: [PATCH] update AssetBundleBuilder --- .../AssetBundleBuilderWindow.cs | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderWindow.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderWindow.cs index 2d854ac..e78e821 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderWindow.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/AssetBundleBuilderWindow.cs @@ -220,15 +220,27 @@ namespace YooAsset.Editor private void RefreshWindow() { + var buildPipeline = AssetBundleBuilderSettingData.Setting.BuildPipeline; var buildMode = AssetBundleBuilderSettingData.Setting.BuildMode; var copyOption = AssetBundleBuilderSettingData.Setting.CopyBuildinFileOption; bool enableElement = buildMode == EBuildMode.ForceRebuild; bool tagsFiledVisible = copyOption == ECopyBuildinFileOption.ClearAndCopyByTags || copyOption == ECopyBuildinFileOption.OnlyCopyByTags; - _encryptionField.SetEnabled(enableElement); - _compressionField.SetEnabled(enableElement); - _outputNameStyleField.SetEnabled(enableElement); - _copyBuildinFileOptionField.SetEnabled(enableElement); - _copyBuildinFileTagsField.SetEnabled(enableElement); + + if (buildPipeline == EBuildPipeline.BuiltinBuildPipeline) + { + _compressionField.SetEnabled(enableElement); + _outputNameStyleField.SetEnabled(enableElement); + _copyBuildinFileOptionField.SetEnabled(enableElement); + _copyBuildinFileTagsField.SetEnabled(enableElement); + } + else + { + _compressionField.SetEnabled(true); + _outputNameStyleField.SetEnabled(true); + _copyBuildinFileOptionField.SetEnabled(true); + _copyBuildinFileTagsField.SetEnabled(true); + } + _copyBuildinFileTagsField.visible = tagsFiledVisible; } private void SaveBtn_clicked()