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;