- Home /
Getting dynamic indicies from multiple dropdown menus
In my app, I have multiple dropdown menus. I have one set up and it works great! Now I want to add more, but under dynamic (which supposedly is the only way it works) it only gives me the initial function and the other ones I've written are missing from the choices.
public void GetDropSelection(int index)
{
Debug.Log(index);
switch (index)
{
case 1: WheelField="Front";
break;
case 2: WheelField="Rear";
break;
case 3: WheelField="Both";
break;
}
but when I add one or more functions like it, they do not show up as options to hook it up in the UI public void GetLocationTiresDropSelection(int index) { Debug.Log(index); switch (index) { case 1: LocationField="Front"; break;
case 2: LocationField="Rear";
break;
case 3: LocationField="Both";
break;
}
}
How do you work with multiple drop downs on the same panel? Thanks!
Comment
Your answer
Follow this Question
Related Questions
Adjusting location on save to avoid infinite loop. 1 Answer
Distribute terrain in zones 3 Answers