Search Unity

[SOLVED] Getting the string name of the selected "SelectableLabel"

Discussion in 'Immediate Mode GUI (IMGUI)' started by retrophil, Jan 10, 2019.

  1. retrophil

    retrophil

    Joined:
    Mar 16, 2013
    Posts:
    24
    I have a list of gameObject strings (SelectableLabel) in my custom editor window, I click the gameObject to highlight it, ideally I need the string name of what I clicked so I can do something with that specific gameObject.

    Am I approaching this wrong?
     
  2. retrophil

    retrophil

    Joined:
    Mar 16, 2013
    Posts:
    24
    EDIT: ....yea I think I am, GUILayout.Button with styles is better.