Prefab filters can be used with SceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary and Object Search Providers.
Filter | Search token | Description |
---|---|---|
Root prefab | prefab:root |
prefab:root Searches all GameObjects that are a Prefab root. |
Top prefab | prefab:top |
prefab:top Searches all GameObjects that are part of a Prefab instance. |
Non asset prefab | prefab:nonasset |
prefab:nonasset Searches all GameObjects that are part of a Prefab that is not inside a Prefab asset. |
Asset prefab | prefab:asset |
prefab:asset Searches all GameObjects that are part of a Prefab asset. |
Any prefab | prefab:any |
prefab:any Searches all GameObjects that are part of a Prefab. |
Model prefab | prefab:model |
prefab:model Searches all GameObjects that are part of a model Prefab. |
Regular prefab | prefab:regular |
prefab:regular Searches all GameObjects that are part of a regular Prefab instance or Asset. |
Variant prefab | prefab:variant |
prefab:variant Searches all GameObjects that are part of a Prefab variant. |
Modified prefab | prefab:modified |
prefab:modified Searches all GameObjects that are a Prefab instance with overrides. |
Altered prefab | prefab:altered |
prefab:altered Searches all GameObjects that are a Prefab instance with overrides even on default overrides. |
File filters can be used with Asset and Object Search Providers.
Filter | Search token | Description |
---|---|---|
Default Search | <search term> |
Searches term attempting to match the asset name, type, or path.texture Searches all Assets that have the word texture in their name, path, or type. |
Name | name: |
name:laser Searches all Assets that contain the word laser. name=laserbeam Searches all Assets where the name is exactly laserbeam. |
Directory | dir:<directory exact name> |
dir:Scripts Searches all Assets contained in a directory with the exact name Scripts . |
Packages | a:packages |
a:packages texture Searches all textures in any package. |
Project | a:assets |
a:assets texture Searches all textures in the current project’s Assets folder. |
Index file | a:<index name> |
a:psd_textures texture Assuming there is an index file named psd_textures.index in the project, searches all textures in that index. |
Size | size:<number of bytes> |
size:4000 texture Searches all textures over 4000 bytes (4KB). |
Extension | ext:<file extension without period> |
ext:png texture Searches all textures with the png extension. |
Age | age:<number of days since last modification> |
age<3 texture Searches all textures that were modified in the last 3 days. |
These filters are available if the index uses the Types Indexing option (See Index Manager).
Filter | Search token | Description |
---|---|---|
Type | t:<Asset Type> |
t:texture Searches all Assets containing texture in their type name (ex: Texture2D, Texture). t:prefab Searches all prefab assets. |
Type | <Asset Type> |
You can search Assets by type without using the t: filter above.texture Searches all Assets containing texture in their type name (ex: Texture2D, Texture) or in their name (ex: myTexture.png). prefab Searches all Prefab Assets or Assets with “prefab” in their name. |
File | t:file |
t:file level1 Searches all file Assets containing the word level1. |
Folder | t:folder |
t:folder Searches all folder Assets. |
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 PrefabAn asset type that allows you to store a GameObject complete with components and properties. The prefab acts as a template from which you can create new object instances in the scene. More info
See in Glossary 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 | t:<type> |
When using the indexed Property, you can use t: to search for a component type for an Asset type.t:collider Searches all Prefabs containing a component with the word collider .t:texture Searches all Assets with a type containing the word texture (ex: Texture or Texture2D). |
Has Component | t:<component type> |
t:collider Searches all Prefabs containing a component with the word collider. t=BoxCollider Searches all Prefabs containing a component called BoxCollider. |
Label | l:<label name> |
l:archi Searches all Assets with a label containing the word archi (e.g.: Architecture).l=Wall Searches all Assets with a label that is exactly Wall . |
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 | property:value |
bounciness>0.1 Searches all assets with a property named bounciness (e.g.: a PhysicsMaterial2D) higher than 0.1.health=2 Searches all Assets with a property named health (e.g.: HealthSystem Component of a Prefab) with of a value of exactly 2.t:texture filtermode!=0 Searches all textures with a filtermode property different than 0 (i.e different than Point). |
Boolean | property:value |
t:Dungeon generatePath=true Searches all Dungeon ScriptableObjects where the property generatePath is true.isStunned=false Searches all GameObjects containing a property isStunned that is false. |
String | property:string value |
t:Character trait:indestru Searches all Prefab with a Character component whose trait property contains the word indestru (ex: indestructible).t:Character trait="tough but fair" Searches all Prefab with a Character component whose trait property is exactly tough but fair . |
Enum | property:<enum value> |
characterclass:rog Searches all GameObjects with with a property named characterclass whose value contains the word rog (e.g.: value is rogue).characterclass=FighterMage Searches all GameObjects with a property named characterclass with an exact value of FighterMage . |
Color | property:<html color value> |
color:ADA Searches all GameObjects with a property named color where the color value starts with ADA (like ADADAD00).color=ADADAD00 Searches all GameObjects with a property named color where the color value is exactly ADADAD00.color=ADADAD <br/>Searches all GameObjects with a property named color where the color value is exactly ADADAD and alpha value is 1. |
Vector | property.[xyzw]:value |
bounds.x>1 Searches all GameObjects with a property named bounds where the x value is larger than 1.acceleration.z=2 Searches all GameObjects with a property named acceleration where the z value is equal to 2 |
Object | sprite:<object exact name> |
sprite:CharacterBody Searches all Assets with a sprite property (e.g.: Image Component of a Prefab) that references a GameObject named CharacterBody. |
If you are using the Dependencies Indexing option (See Index Manager) Unity indexes direct dependenciesA direct dependency occurs when your project “requests” a specific package version. To create a direct dependency, you add that package and version to the dependencies property in your project manifest (expressed in the form package_name@package_version
). More info
See in Glossary of all Assets using AssetDatabase.GetDependencies.
Filter | Search token |
Description |
---|---|---|
Reference Path | ref:<asset full path> |
ref:assets/images/particles/p_smoke.png Searches all Assets that have direct dependencies on the exact Asset path: assets/images/particles/p_smoke.png . |
Reference Name | ref:<asset name> |
ref:p_smo Searches all Assets that have direct dependencies on an Asset whose name contains the word p_smo . ref:p_smoke.png Searches all Assets that have direct dependencies on an Asset named p_smoke.png . |
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.
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Some 3rd party video providers do not allow video views without targeting cookies. If you are experiencing difficulty viewing a video, you will need to set your cookie preferences for targeting to yes if you wish to view videos from these providers. Unity does not control this.
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.