You can search your scene objects by component’s type

Did you know that besides searching your Hierarchy window by object name you can actually filter your scene objects by component names they have?

As you already know, there’s a small search input on top of Hierarchy window. It allows you to search for scene objects by name. When you start typing in the input, the object list will be filtered, and only the objects which names include the typed text will be displayed.

hierarchy search by name

What you might not know is that besides searching for object’s names, the search input is also searching for the object’s components. It works a bit differently though. You need to type the component name as a whole (not only a part of it) in order to get the list of objects that this component is attached to.

hierarchy search by type

Be careful. By default the Hierarchy is filtering game object by name and by type. Yet you can specify precisely what you’re looking for.

hierarchy search by type only

related
AdvancedTips
ExecuteInEditMode will run your script in edit mode
You might be familiar with the workflow that all of your game scripts are working only when...
0
IntermediateTips
Use Debug.Break() to pause Unity editor from the code
You can pause your game from the editor any time you want. But did you know that you can trigger...
1
IntermediateMultiplayerTutorial
Building a Turn-Based Multiplayer Game with GameSparks and Unity: Part 3
Welcome to the third part of our GameSparks tutorial series. In parts one and two we have finished...
0
Call The Knights!
We are here for you.
Please contact us with regards to a Unity project below.



The Knights appreciate your decision!
Expect the first news soon!
hire us!