fix bug with non-sequential enum properties

This commit is contained in:
minenice55 2022-08-21 17:40:40 -04:00
parent 7f1c70337a
commit ca8d8b5145

View file

@ -172,7 +172,7 @@ namespace HeavenStudio.Editor
dropdown.value = selected;
dropdown.onValueChanged.AddListener(_ =>
parameterManager.entity[propertyName] = Enum.ToObject(enumType, dropdown.value)
parameterManager.entity[propertyName] = (int) enumVals.GetValue(dropdown.value)
);
break;