From 58f9aea979d2790d4168a36b13c3547346cacda5 Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 2 Jan 2024 11:46:29 +0800 Subject: [PATCH] fix #223 --- .../AssetBundleBuilder/VisualViewers/BuildPipelineViewerBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/VisualViewers/BuildPipelineViewerBase.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/VisualViewers/BuildPipelineViewerBase.cs index d01bcd5..c9798f0 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/VisualViewers/BuildPipelineViewerBase.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/VisualViewers/BuildPipelineViewerBase.cs @@ -66,7 +66,7 @@ namespace YooAsset.Editor var buildModeList = GetSupportBuildModes(); int defaultIndex = buildModeList.FindIndex(x => x.Equals(buildMode)); if (defaultIndex < 0) - defaultIndex = 0; + defaultIndex = (int)(EBuildMode)buildModeList[0]; _buildModeField = new PopupField(buildModeList, defaultIndex); _buildModeField.label = "Build Mode"; _buildModeField.style.width = StyleWidth;