Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Unity 6 search in Hierarchy?

Discussion in 'Editor & General Support' started by ClosingTime, May 16, 2024.

  1. ClosingTime

    ClosingTime

    Joined:
    Nov 23, 2016
    Posts:
    256
    Is there an option to search in Unity 6 all the GameObjects with Rigidbody component under a specific GameObject ancestor?
    Like all the Rigidboy under Undead in the scene?

    Or is this impossible without an additional custom script?
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    6,922
    This should be possible with Unity Search. I know it works for "search assets of specific type under a given path" so I expect "search specific components under a given GameObject" to also be possible.
     
  3. ClosingTime

    ClosingTime

    Joined:
    Nov 23, 2016
    Posts:
    256
    It only seems to search in project files, not in the Hierarchy of a scene or prefab.