Each type of search has its own Search Provider. A Search Provider allows you to search and filter content. Each Search Provider has a unique search token. A search token is a text string that you can use in the search field to search using only a specific Search Provider.
By default, all searches use Project, Hierarchy, and Settings Search Providers unless you exclude them.
Search provides additional opt-in Search Providers. Search ignores opt-in Search Providers unless you explicitly use them. Opt-in Search Providers differ from default Search Providers in the following ways:
You can only execute them using their search tokens. You cannot combine an opt-in Search Provider with any other Search Provider.
To perform a search using all default Search Providers, enter the search terms in the search field. Results appear as you type.
To perform a search using an opt-in Search Provider, prefix the search terms with the Search Provider’s search token.
Open the More(⋮) menu to view a list of Search Providers and their prefixes.
Provider: | 功能: | Search token: | 示例: |
---|---|---|---|
Project | Searches Project Assets. |
p: (for “project”) |
p:Player Searches for Assets that match the term “Player”. |
Hierarchy | Searches GameObjects in the Scene. |
h: (for “hierarchy”) |
h:Main Camera Searches the current Scene for GameObjects that match the term “Main Camera”. |
Settings | Searches all Project Settings and Preferences. | set: |
set:VFX Finds Project Settings and Preferences pages that match the term “VFX”. |
Provider: | 功能: | Search token: | 示例: | |
---|---|---|---|---|
Expression | This token is not required. Search expressions are recognized without a token. | |||
Menus | Searches the Unity main menu. | m: |
m:TextMesh Pro Searches the Unity main menu for commands that contain “TextMesh Pro.” |
|
Asset Database | Searches the AssetDatabase. This is useful when searching the Editor resource bundle (containing all icons/resources used to build the editor) because those binary resources are not indexed. | adb: |
||
Help | Searches the help. | ? |
?asset Searches for help entries containing the word “Asset”. |
|
Calculator | Computes mathematical expressions. | = |
=2*3+29/2 Calculates the answer to the expression 2*3+29/2 . |
|
Files | Searches for files | find: |
find:Paint Mat Searches for all assets paths containing the words paint AND the word mat (e.g.: PaintBrush_Mat.mat, DryWallPainted_Mat.mat) |
|
Static API Method | Finds and executes static API methods. | # |
#Mesh Searches for static API methods with “Mesh” in their names. |
|
Packages | Searches the Unity package database. | pkg: |
pkg:vector Searches the Unity package database for packages that match the term “vector”. |
|
Asset Store | Searches the Unity Asset Store. | store: |
store:texture Searches the Unity Asset Store for Assets that match the term “texture”. |
|
性能 | Searches all the performance trackers available in Unity. This is useful for searching for performance bottlenecks. | performance: |
||
Saved Queries | Searches for saved queries | q: |
q:enemies Searches all Search Query assets containing the word enemies. |
|
Logs | Searches the Editor.log file |
log: |
log:cache Searches the Editor.log file for information that matches “cache”. |
You can also create your own Search Providers.
You can exclude specific Search Providers from a regular search. To exclude a provider, do one of the following:
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.