Search Unity

Panel showing information based on which gameobject is clicked

Discussion in 'Editor & General Support' started by HeardsTheWord, Mar 2, 2016.

  1. HeardsTheWord

    HeardsTheWord

    Joined:
    Feb 17, 2016
    Posts:
    5
    I'm using several clones of the same object for a drag and drop program i am writing. When right clicking on the game object a panel pops up showing the object's name and several properties that you're able to change (drop down boxes and radio buttons).

    When I select a game object and change its properties, that property is universal, so all game objects show the same information. I want to be able to change one objects properties and have those save specific for that object. That way when a select a different object it has its own properties set to whatever I want. How would I go about populating drop down menus, radio buttons, etc. based on which game object is selected (Airplane1 versus Airplane2)?

    --
    I should preface this with the fact that I'm picking up where someone left off, and I am unable to ask that person.
    --

    Thank you!
     
    Last edited: Mar 2, 2016