Search Unity

Feedback Need UI Toolbar Dropdown's *with* Text

Discussion in 'Editor Workflows' started by Ziflin, Aug 1, 2021.

  1. Ziflin

    Ziflin

    Joined:
    Mar 12, 2013
    Posts:
    132
    The ToolbarOverlay docs show the use of the EditorToolbarDropdownToggle class and the example's CreateCubes() method states:

    // A toolbar element can be either text, icon, or a combination of the two. Keep in mind that if a toolbar is
    // docked horizontally the text will be clipped, so usually it's a good idea to specify an icon.

    We need the ability to show the text in a toolbar drop-down element to replace an existing sceneview overlay that allows us to select the current area/sub-scene that's being worked on. Can we please get an option to show the text with the EditorToolbarDropdown/etc. classes or is there a simple way to enable this without writing our own full version? There are several examples of toolbars with text dropdowns in Visual Studio / Blender / etc.