Version: Unity 6.1 (6000.1)
Language : English
Unity Search
Act on search results

Launch and use the Search window

The Search window finds assets in your project, packages in Unity’s registry, assets from the Unity Asset StoreA growing library of free and commercial assets created by Unity and members of the community. Offers a wide variety of assets, from textures, models and animations to whole project examples, tutorials and Editor extensions. More info
See in Glossary
, log information, and so on. You can compare items, view them in an InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
See in Glossary
tab, and act on them.

This page reviews the window’s interface.

The Search window showing a saved query that finds prefabs in the Assets folder, and the Inspector tab for one of the results.
The Search window showing a saved query that finds prefabs in the Assets folder, and the Inspector tab for one of the results.

Launch Search

To launch Search, do one of the following:

  • Press Ctrl+K (macOS: Cmd+K).
  • From the main menu, select Edit > Search > Search All.
  • From the main toolbarA row of buttons and basic controls at the top of the Unity Editor that allows you to interact with the Editor in various ways (e.g. scaling, translation). More info
    See in Glossary
    , select the magnifying glass icon.

Tip: You can create your own shortcuts and menu items for custom searches. For more information, refer to Invoke from the main menu.

As well as the general Search window, you can also open the following specialized search windows:

Search mechanisms

Unity Search supports two search mechanisms:

  • Visual query builder: Use the visual query builder to create complex queries that combine multiple search tokens. For details, refer to Visual query builder.

  • Textual search: Enter a search query in the search field. For syntax and examples, refer to Textual query references.

The toggle for search mechanisms is next to the search field:

The Toggle Query Builder Mode button next to a textual query
The Toggle Query Builder Mode button next to a textual query

Press Tab for autocomplete

For autocomplete suggestions for the current query, press Tab.

Tab works with both the visual query builder and textual queries.

For textual queries, Tab shows autocomplete suggestions like filters, tokens, and recent searches.

For the visual query builder:

  • If your cursor isn’t next to any text, Tab shows the available filters.
  • If your cursor is next to text, Tab shows the same autocomplete suggestions as the textual query.
The Search window showing a textual query with autocomplete suggestions
The Search window showing a textual query with autocomplete suggestions

Select results views

The Search window has three views:

  • Tables: The table view is the most flexible, because you can add and remove columns, compare data across multiple search results, and export data. For more information, refer to Manage results tables.
  • List: The list view is the default view, and shows search results as a list of items.
  • Grid: The grid view shows search results as a grid of thumbnails.

Tip: The zoom slider controls the size of the search result thumbnails in the list and grid views. When the thumbnail is large enough, the view switches to the grid view. If it’s too small, the view switches to the list view.

Add an Inspector tab

The Search window can show an Inspector tab for a selected item. The tab shows a preview of the item if the item type supports previews, and the item’s components. You can also perform actions on the item, based on the item type.

To toggle the Inspector tab, select the Inspector icon (The Inspector icon) in the Search window.

To view an item in the Inspector tab, click the item in the search results.

For more information about the Inspector tab, refer to The Inspector window.

Display or hide the status bar

The Search window’s status bar shows the query’s status, search providers, number of results, and query run time.

To show or hide the status bar, from the Search window’s More (⋮) menu, select Status bar.

Add result types and indices

To add or remove result types, from the Search window’s View menu (The View menu):

  • For results from the File search provider, select Show more results.

  • For results from packages in the projects, such as their scriptsA piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
    See in Glossary
    and images, select Show package results. Show more results needs to be active for Show package results to work.

    This option shows results from the Project windowA window that shows the contents of your Assets folder (Project tab) More info
    See in Glossary
    ; it’s not the same as searching for packages with the PackagesPackages are collections of assets to be shared and re-used in Unity. The Unity Package Manager (UPM) can display, add, and remove packages from your project. These packages are native to the Unity Package Manager and provide a fundamental method of delivering Unity functionality. However, the Unity Package Manager can also display Asset Store packages that you downloaded from the Asset Store. More info
    See in Glossary
    provider.

To add or remove indices, from the Search window’s View menu (The View menu):

  • For results from the Assets index, select Assets (asset index).
  • For results from a custom index, select your custom index’s name.

Adding and removing indices isn’t the same as using search providers. Instead, it changes what the search providers can search through. For more information, refer to Focus searches with search providers.

Cycle through search history

To cycle through search query changes:

  • To undo, press Ctrl+Z (macOS: Cmd+Z).
  • To redo, press Ctrl+Y (macOS: Cmd+Y).

Save and reuse queries

You can save and reuse search queries. For more information, refer to Manage search queries.

To show or hide the saved queries list, select the Searches icon (The Searches icon) in the Search window.

Change search preferences

To change search preferences, click the gear icon in the Search window. For more information, refer to The Preferences window’s Search tab.

Additional resources

Unity Search
Act on search results