What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-06 20:46:17
unity set dropdown value
IndexOf: // returns a list of the text properties of the options var listAvailableStrings = dropdown.options.Select(option => option.text).ToList(); // returns the index of the given string dropdown.value = listAvailableStrings.IndexOf("an Optio... Add solution