- Home /
The question is answered, right answer was accepted
new Dropdown implementation incomplete?
According to the Documentation the new Dropdown element has a bunch of public methods, such as
public void ClearOptions()
public void AddOptions() // 3 overloads
...
Alas, none of them seems to be implemented. When trying to call any of them, the compiler always fails with
Error CS1061 'Dropdown' does not contain a definition for 'ClearOptions' ...
(or 'AddOptions' etc, resp). Inspecting the definition (created from metadata) yields no results. Hence the question: is the Dropdown properly implemented? Or will I have to manipulate the options member instead? Is it maybe VS that causes the problem (though I don't have other similar problems)?
Please tell me that I am only missing something really obvious. ;)
What does your code look like? On what component are you trying to call ClearOptions?
Answer by Dave-Carlile · Dec 09, 2015 at 03:26 PM
What version of Unity are you using. I believe these methods were just added in the new 5.3 release.
Add convenience methods to Dropdown for adding or clearing the options.
Yeah. Thanks for for pointing that out. I have already downloaded 5.3, but am still running 5.2.3 and have missed that line in the patchnotes. Glad to hear that I'm only an upgrade away...
Follow this Question
Related Questions
Get Dropdown Index value based on text value using Where c# filter 1 Answer
How to use the new Dropdown Menu? 2 Answers
Remove specific screen resolutions 0 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers