I have a dropdown made with the new UI system; I can read the values of the enum, and populate the dropdown without problems.
foreach (myclass.myenum the_enum in myclass.myenum.GetValues(typeof(myclass.myenum)))
{
the_dropdown.options.Add(new Dropown.OptionData() { text = the_enum.ToString()});
}
Now, when I read the value though, I get back the int value related to the selected entry. Is there a way to get the value as enum or text; instead than as int?