Im very familiar with the unity 5 UI, especially with buttons, the way buttons work are calling a method… But I don’t seem to find nor have any idea how to call a Method when clicking a certain option in the dropdown.
I have my own method called UseItem() and needs to be used when the first option in the dropdown is clicked. How can I achieve this?
An example code or a reference would be great!
Thanks, in advance
You have to set a callback for the “OnValueChanged” event. That function will get an int as a parameter, which is the index of the selected item in the Dropdown.