Search Unity

Question Nesting Dropdown Menus

Discussion in 'UGUI & TextMesh Pro' started by Iamg1004, Feb 18, 2021.

  1. Iamg1004

    Iamg1004

    Joined:
    Feb 7, 2021
    Posts:
    17
    Hi y'all! Please go easy on me, I'm just getting started with Unity/C# ^_^.

    So, I've been searching for a way to nest dropdown menus (Have one inside another, also called multilevel dropdowns.), so I could select, say, Character Class Dropdown => Character Dropdown, without having to do so with buttons, or other UI elements (My plan is to have 100+ characters, so dividing it this way would highly increase readability, and decrease search time, at least compared with any other method)(Coding wise... I'll probably figure it out after deciding if this is the way I wanna do it/ if it's possible lmao. Already have a base with ScriptableObjects and buttons for a roster of 2, so it shouldn't be too hard... right?).

    However, so far, this seems like it's not possible, as in there are no Unity/tutorials, forum questions, etc. (Or at least, there are none that I have found).

    So, my question is: Is this possible? If so, how? I'm hoping for a relatively quick and easy solution, but even if there isn't, I'm willing to listen. However, if there was another way to narrow down searches before selecting characters (Like what was mentioned above), or to make one Dropdown menu affect another, that would also work. Any help is appreciated.

    Thanks!
     
    Last edited: Feb 19, 2021
  2. Iamg1004

    Iamg1004

    Joined:
    Feb 7, 2021
    Posts:
    17
    For further reference: I'm aiming for something like this, maybe/of course not as pretty/clean looking, but at least functionally identical (Tree-like structure, or at least one instance of it) .


    Another examples:



    Once again, any and all help is welcome.
    Thanks!
     
    MaxLohMusic likes this.