mirror of https://github.com/tuyoogame/YooAsset
fix #223
parent
4d4bb1e34f
commit
58f9aea979
|
@ -66,7 +66,7 @@ namespace YooAsset.Editor
|
||||||
var buildModeList = GetSupportBuildModes();
|
var buildModeList = GetSupportBuildModes();
|
||||||
int defaultIndex = buildModeList.FindIndex(x => x.Equals(buildMode));
|
int defaultIndex = buildModeList.FindIndex(x => x.Equals(buildMode));
|
||||||
if (defaultIndex < 0)
|
if (defaultIndex < 0)
|
||||||
defaultIndex = 0;
|
defaultIndex = (int)(EBuildMode)buildModeList[0];
|
||||||
_buildModeField = new PopupField<Enum>(buildModeList, defaultIndex);
|
_buildModeField = new PopupField<Enum>(buildModeList, defaultIndex);
|
||||||
_buildModeField.label = "Build Mode";
|
_buildModeField.label = "Build Mode";
|
||||||
_buildModeField.style.width = StyleWidth;
|
_buildModeField.style.width = StyleWidth;
|
||||||
|
|
Loading…
Reference in New Issue