ugui-mvvm
ugui-mvvm copied to clipboard
Quick fix to autoselect the first event if there is only one available
When binding to Unity's Dropdown component i noticed there is no event trigger dropdown in the inspector because it only gets displayed if you have the choice between multiple events. But this way no event was ever selected if there is just one (OnValueChanged in case of the Dropdown component).
This PR autoselects the first one.