Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    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:
    13
    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:
    13
    EDIT: ....yea I think I am, GUILayout.Button with styles is better.