From 429f68ff64c67622d09b3be1326e5d565f83a270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Thu, 19 Dec 2024 12:24:19 +0800 Subject: [PATCH] update asset bundle builder --- .../VisualViewers/BuildPipelineViewerBase.cs | 12 ++++++++++++ .../Editor/UIElements/UIElementsTools.cs | 16 ++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/VisualViewers/BuildPipelineViewerBase.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/VisualViewers/BuildPipelineViewerBase.cs index cf5a86bf..a25205d6 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/VisualViewers/BuildPipelineViewerBase.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/VisualViewers/BuildPipelineViewerBase.cs @@ -13,6 +13,7 @@ namespace YooAsset.Editor internal abstract class BuildPipelineViewerBase { private const int StyleWidth = 400; + private const int LabelMinWidth = 180; protected readonly string PackageName; protected readonly BuildTarget BuildTarget; @@ -150,6 +151,17 @@ namespace YooAsset.Editor AssetBundleBuilderSetting.SetPackageUseAssetDependencyDB(PackageName, BuildPipeline, _useAssetDependencyDBToggle.value); }); + // 对齐文本间距 + UIElementsTools.SetElementLabelMinWidth(_buildOutputField, LabelMinWidth); + UIElementsTools.SetElementLabelMinWidth(_buildVersionField, LabelMinWidth); + UIElementsTools.SetElementLabelMinWidth(_compressionField, LabelMinWidth); + UIElementsTools.SetElementLabelMinWidth(_encryptionField, LabelMinWidth); + UIElementsTools.SetElementLabelMinWidth(_outputNameStyleField, LabelMinWidth); + UIElementsTools.SetElementLabelMinWidth(_copyBuildinFileOptionField, LabelMinWidth); + UIElementsTools.SetElementLabelMinWidth(_copyBuildinFileTagsField, LabelMinWidth); + UIElementsTools.SetElementLabelMinWidth(_clearBuildCacheToggle, LabelMinWidth); + UIElementsTools.SetElementLabelMinWidth(_useAssetDependencyDBToggle, LabelMinWidth); + // 构建按钮 var buildButton = Root.Q