ugui-mvvm icon indicating copy to clipboard operation
ugui-mvvm copied to clipboard

Quick fix to autoselect the first event if there is only one available

Open krisrok opened this issue 4 years ago • 0 comments

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.

krisrok avatar Jun 17 '20 10:06 krisrok