Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. We're excited to be bringing you the newest Unity features, news, demos, and we've even got some special guests from some of the industry’s most storied franchises. Set a reminder to tune in on YouTube here
    Dismiss Notice
  3. Unity 2018.3 is now released.
    Dismiss Notice

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

Discussion in 'Extensions & OnGUI' started by retrophil, Jan 10, 2019.

  1. retrophil

    retrophil

    Joined:
    Mar 16, 2013
    Posts:
    22
    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:
    22
    EDIT: ....yea I think I am, GUILayout.Button with styles is better.