Unity’s search functionality allows you to search the Scene view and Hierarchy window for GameObjects, and the Project window for assets.
Each search bar has the same basic workflow. To enter a search term, select the textbox and type a word or phrase. While you type, Unity automatically searches for those terms and provides the results.
Some search bars allow you to search by different criteria, such as name, type, or label. To select the criteria you want to search, select the magnifying glass icon on the bar to open the Search drop-down menu, and choose which criteria to use.
To clear your search and return your GameObject or asset list view to normal, empty the search bar or select the small x icon in the search bar.
For more advanced search features, including the ability to search sources inside and outside of Unity, and perform actions on the results, see the Quick Search package.
Both the Scene view and the Hierarchy window have a search bar that allows you to search for GameObjects by name or type. The Scene view and Hierarchy window represent the same information, and when you use one search bar, Unity automatically populates the other search bar with the same text.
A search term acts as a filter for the GameObjects in the Scene view and Hierarchy Window.
The Project window has a search bar that allows you to search for assets by name, type, or label. Select the magnifying glass in the search box to define which criteria to search by.
A search term acts as a filter for the assets in the Project window. Assets that match the search term appear in alphabetical order. Assets that do not match the search term do not appear in the results.
A label is a short piece of text that you can use to group particular assets. To view the menu of existing labels, navigate to the Project window header and select the Search by Label button (the label icon). Select a label from the menu to search the project for any assets that have that label assigned to them.
To add a label to an asset, follow these steps:
Open the asset in the Inspector and find the preview panel at the bottom. This window might be minimised; if this is the case, click and drag the title bar upwards to expand it.
To open the label menu, click the label icon shown on the bottom right of this panel.
To add an existing label to the asset, select a label from this menu. Labels currently applied to the asset have a check mark next to them.
To add a new label, you first need to create one. Type your new label name into the text box shown at the top of the menu and press wither Space or Enter. This creates a label which you can then add to any asset, and use to search in the Project window. Assets can have as many labels as desired and belong to several different label groups at once.
To remove a label from an asset, open the label menu and select it to remove the tick icon.