fix bug with non-sequential enum properties

This commit is contained in:
minenice55 2022-08-21 17:40:40 -04:00
parent 598ed08c6c
commit f4fceb8f22

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;