Additional Search filters
Use additional search filters to narrow search results.
読み終わるまでの所要時間 1 分最終更新 24日前
This page reviews additional search filters that you can use to narrow down your search results.
Combine search tokens for complex searches
You can combine search tokens to create more complex queries.
- The queries are written on one line with one character space between tokens.
- The character space between each new token is an "And" operation, so both filters must be true for the query to return a result. Add another operator (or, <, >) to return different results.
- If a Search Provider filter token (h:, p:) is used, it must be the first component in the query.
Here are a few examples:
Query | Description |
|---|---|
| Searches all static meshes in a Scene that cast a shadow. |
| Searches all lights in a Scene with a specific color with brightness higher than 7.4. |
| Find all objects with a component |
Cross-reference across multiple providers with search expressions
Search expressions allow you to add to the search query language to express complex queries that cross-reference multiple providers, for example, to search for all objects in a scene that use a shader that doesn’t compile. Refer to Search expressions for more information.
Type Filters
These filters are available if the index uses the Types Indexing option (See Index Manager).
Filter | Search token | Description |
|---|---|---|
| Type | | Searches all Assets containing texture in their type name (ex: Texture2D, Texture). Searches all prefab assets. |
| Type | | You can search Assets by type without using the t: filter above.Searches all Assets containing texture in their type name (ex: Texture2D, Texture) or in their name (ex: myTexture.png). Searches all Prefab Assets or Assets with "prefab" in their name. |
| File | | Searches all file Assets containing the word level1. |
| Folder | | Searches all folder Assets. |
Indexed Property Search
Searching properties is available if the index has been specified with the Properties Indexing option (see Index Manager). To view the list of all indexed properties check the Index Manager Keywords tab. All property values are converted to a string or number. The name of the property has to be complete and not partial (case does not matter though). Unity indexes properties at the top level object of a Prefab Asset. If you want all Prefab hierarchies to be indexed, create a Prefab Index (see Index Manager). For .unity files Unity indexes the properties of the SceneAsset and not the Scene content. If you want all Scene contents to be indexed, create a Scene Index (see Index Manager).
Filter | Search token | Description |
|---|---|---|
| Type | | When using the indexed Property, you can use Searches all Prefabs containing a component with the word Searches all Assets with a type containing the word |
| Has Component | | Searches all Prefabs containing a component with the word collider. Searches all Prefabs containing a component called BoxCollider. |
| Label | | Searches all Assets with a label containing the word Searches all Assets with a label that is exactly |
All properties of an Asset (Prefab or other types) are indexed and searchable. Here are a few examples of Property query:
Filter | Search token | Description |
|---|---|---|
| Number | | Searches all assets with a property named Searches all Assets with a property named Searches all textures with a |
| Boolean | | Searches all Dungeon ScriptableObjects where the property Searches all GameObjects containing a property |
| String | | Searches all Prefab with a Character component whose trait property contains the word Searches all Prefab with a Character component whose trait property is exactly |
| Enum | | Searches all GameObjects with with a property named Searches all GameObjects with a property named |
| Color | | Searches all GameObjects with a property named Searches all GameObjects with a property named Searches all GameObjects with a property named color where the color value is exactly ADADAD and alpha value is 1. |
| Vector | | Searches all GameObjects with a property named Searches all GameObjects with a property named acceleration where the z value is equal to 2 |
| Object | | Searches all Assets with a |
Dependency filters
If you are using the Dependencies Indexing option (See Index Manager) Unity indexes direct dependencies of all Assets using AssetDatabase.GetDependencies.
Filter | Search | Description |
|---|---|---|
| Reference Path | | Searches all Assets that have direct dependencies on the exact Asset path: |
| Reference Name | | Searches all Assets that have direct dependencies on an Asset whose name contains the word Searches all Assets that have direct dependencies on an Asset named |
Search for null values
Search any object property for a value using the keyword:
nullnoneh:#MeshFilter.m_mesh=none