Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview 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.