mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-08 18:55:07 +00:00
fix bug with non-sequential enum properties
This commit is contained in:
parent
598ed08c6c
commit
f4fceb8f22
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue