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

Display a different text than the selected index in EditorGUI.Popup

Discussion in 'Immediate Mode GUI (IMGUI)' started by LazloBonin, Jun 26, 2015.

  1. LazloBonin

    LazloBonin

    Joined:
    Mar 6, 2015
    Posts:
    809
    Is there a way to manually determine the text or GUIContent in a Popup, without it being the text of options[selectedIndex]?

    I see UnityEvent's popup, for instance, displays things like "Transform.Translate" while its actual selection would be "Transform/void Translate (Vector3)". So visibly, there *is* a way. But is it exposed for us?
     
  2. skalev

    skalev

    Joined:
    Feb 16, 2012
    Posts:
    264
    liortal and LazloBonin like this.
  3. LazloBonin

    LazloBonin

    Joined:
    Mar 6, 2015
    Posts:
    809