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

Showing an gameobjects place in the Hierarchy

Discussion in 'World Building' started by zedz, Jun 28, 2021.

  1. zedz

    zedz

    Joined:
    Aug 31, 2013
    Posts:
    245
    Simple question, but its been bothering me for months, Ive wasted so much time there must be a better way

    When I select a gameobject in the world
    how can I make it so it shows that gameobject in the hierarchy

    like press 'F' to focus that object but show me where this object sits in the Hierarchy
     
  2. zedz

    zedz

    Joined:
    Aug 31, 2013
    Posts:
    245
    Perhaps my explanation wasnt clear


    heres a picture, eg I select the house in the scene, now where can I find it in the heirarchy?
    eg is there a way to show me where the selected gameobject sits in the heirarachy,
    atm it takes me minutes each time I want to find something, I have select the first object and see if its highlighted in the map, if so then expand that folder and repeat until I find it.
    i.e. something that should take a second takes minutes to do.
    There must be a better way?
     
  3. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,549
    ping.jpg

    Edit: You can also do this procedurally using EditorGUIUtility.PingObject
     
    zedz likes this.
  4. zedz

    zedz

    Joined:
    Aug 31, 2013
    Posts:
    245
    OK thanks mate, that works a treat, Ive been using Unity for years, yet still learn stuff
     
    adamgolden likes this.