Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Runtime dropdown?

Discussion in 'UI Toolkit' started by Siiseli92, Sep 28, 2020.

  1. Siiseli92

    Siiseli92

    Joined:
    Nov 16, 2016
    Posts:
    6
    Hello. I'm trying to find a dropdown component I could use in runtime, not in editor. While the "DropdownMenu" does derive from UnityEngine, and not UnityEditor, it is not a descendant of VisualElement, and so I'm having a hard time adding it to my visual tree. I'm trying to wrap my head around it, do we actually not have a usable runtime dropdown element, every example I find deals with editorwindows etc.? Do I have to make one of the most basic often required UI controls, a dropdown, myself? Or am I missing something here?
     
    Genom likes this.
  2. Genom

    Genom

    Joined:
    Dec 2, 2014
    Posts:
    86
    Siiseli92 likes this.
  3. Shinyclef

    Shinyclef

    Joined:
    Nov 20, 2013
    Posts:
    478
    I was about to post asking the same question. Wondering if a runtime drop down is on the roadmap...? I'd rather use a built in control rather than build my own and replace it later.
     
    Siiseli92 likes this.
  4. sebastiend-unity

    sebastiend-unity

    Unity Technologies

    Joined:
    Nov 9, 2015
    Posts:
    183
    Hi,
    Runtime dropdown control is indeed on our (immediate) roadmap. Stay tuned for that and a few other controls that are currently missing from the Runtime library.
     
    Shinyclef, Siiseli92 and Hertzole like this.
  5. Maverick

    Maverick

    Joined:
    Dec 18, 2009
    Posts:
    225
    Any ETA? We kind of need it already, I would really like to know if it's worth waiting.

    Thanks
     
    Last edited: Oct 7, 2020
    devotionsolutions and Siiseli92 like this.
  6. FizzFab

    FizzFab

    Joined:
    Feb 19, 2018
    Posts:
    12
    MintTree117 and gareth_untether like this.
  7. Refeas

    Refeas

    Joined:
    Nov 8, 2016
    Posts:
    192
    7 months have passed and still no dropdowns in runtime. Surely it can be done and fully tested way quicker than that. :)
     
  8. capgunmatt

    capgunmatt

    Joined:
    Feb 29, 2020
    Posts:
    8
    I, too, would like to express my interest for this, possible, future, update, to this excellent uitoolkit. Regards, yours, truly, Samson McSamson.
     
  9. Ashfid

    Ashfid

    Joined:
    Jun 8, 2019
    Posts:
    20
    Dropdown is there in 2021.2 at least (for runtime)
     
    Xarbrough and Midiphony-panda like this.
  10. Xarbrough

    Xarbrough

    Joined:
    Dec 11, 2014
    Posts:
    1,184
    DropdownField also exists in 2020.3, I was searching a while because the editor control is called PopupField...
     
    ScallyGames likes this.