Search Unity

Feedback Add maximum window size to AdvancedDropdown control

Discussion in 'Immediate Mode GUI (IMGUI)' started by Xarbrough, Aug 8, 2019.

  1. Xarbrough

    Xarbrough

    Joined:
    Dec 11, 2014
    Posts:
    486
    I really like the new AdvancedDropdown IMGUI control. It provides a searchable popup window with a scrollable list of entries, much like the AddComponent menu. In the past I've implemented this type of popup in almost every project myself.

    To make the AdvancedDropdown even better, I suggest:

    Add a maximum window size property. When adding e.g. 100 items to the list, the window fills the entire screen, which is not very pleasing. I'd rather have it cover only have a screen, since scrollbars take care of the rest. This is also in-line with the way the original AddComponent menu works. It has a maximum size and shows scroll bars early, which looks nicer and keeps the content more in one place.

    AddComponentDropdown.jpg AdvancedDropdown.jpg