pull/229/head
hevinci 2024-01-02 11:46:29 +08:00
parent 4d4bb1e34f
commit 58f9aea979
1 changed files with 1 additions and 1 deletions

View File

@ -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<Enum>(buildModeList, defaultIndex);
_buildModeField.label = "Build Mode";
_buildModeField.style.width = StyleWidth;