Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feedback Feature Request: Tooltips for Popup items

Discussion in 'Immediate Mode GUI (IMGUI)' started by Outliver, Jun 4, 2019.

  1. Outliver

    Outliver

    Joined:
    Feb 19, 2015
    Posts:
    2
    Would be nice to have to tooltips on popup items like so:
    Code (CSharp):
    1. var fieldLabel = new GUIContent( "Field label" );
    2. var itemLabels = new List<GUIContent>
    3. {
    4.     new GUIContent( "item label", "item tooltip" ),
    5.     new GUIContent( "another label", "another tooltip" ),
    6. };
    7. EditorGUILayout.Popup( fieldLabel, 0, itemLabels.ToArray() );
    Thx & keep it up :)
     
    Xarbrough likes this.