- Home /
In the Hierarchy how do I find an object with a certain script attached
I've lost an object in my millions of objects as I haven't named it properly and it has a script attached that I wish to unattach.
How do I find an an object in the hierarchy with a certain script attached?
I tried searching; it yielded no results!
Answer by Eric5h5 · Jan 05, 2013 at 09:16 PM
Type the name of the script in the hierarchy search box. It must be typed exactly, since the search is case-sensitive.
It doesn't work for me, using Unity5. Unable after Unity5? How can I get this work?
Doesn't work for me either in Unity 5. (EDIT: Just realized that results are displayed in a section ("Path: ...") that appears in the bottom of the Hierarchy window rather than within the actual hierarchy)
Still works fine in any version of Unity 5 that I've tried. $$anonymous$$ake sure you type the name correctly, though it's no longer case-sensitive, and that you're actually using the hierarchy search box.
Works fine for me. Type the full name of the component.
If you click on that tiny dropdown arrow in the text field the dropdown reveals
All
Name
Type
If it is set to "Name" Then you won't be able to find any components including scripts on the gameobjects.
Answer by mbaker · Mar 13, 2018 at 02:27 PM
Self promotion here but our tool Hierarchy Search makes this and more complex queries super easy https://www.assetstore.unity3d.com/#!/content/107513
Search by:
Name
Type
Property Name
Field Name
Using partial or full names.
Your answer
Follow this Question
Related Questions
Callback for when an object is deleted from the scene by the user in EditorMode. 3 Answers
About batches and triangles 1 Answer
How to move whole folder from project view to hierarchy view 0 Answers
Unloaded scenes continuously keep adding? 1 Answer
Overwrite the inspector window on Scene Asset heading chosen in the hierarchy window 0 Answers