Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


project_search

Search Box Syntax

This pages details the syntax for the built-in search boxes, not the new Quick Search package.

The search box exists in the Project tab and the Hierarchy tab. There are a few non-documented options that it supports.

Note: The glob syntax applies to asset paths, not asset names.

Syntax

Search Term Matches
* Any number of any character
t:Type All objects with the given type. Can search for components. 1)
l:Label All assets with the given asset label.
glob:“<glob_text>” Selects objects using a glob language. See below.

Unity Glob Language

Unity searches support globbing, but it seems to be a custom language.2) The glob syntax must be wrapped in quotes.

Glob Syntax

Syntax What this matches
* Any number of any character
? Any single character
(X|Y|Z) Any one of the strings X, Y, or Z

The last “OR” syntax can be repurposed to also match against 'nothing':

Syntax What this matches
(|X|Y|Z) Any one of the string X, Y, or Z, or nothing
Text(|_test).png Either Text.png or Text_test.png

Examples:

Syntax What this matches
MyTexture(|_)(|0|1|2|3|4|5|6|7|8|9)(|0|1|2|3|4|5|6|7|8|9).* Files with any extension starting with MyTexture. Optionally allows a number _0 to _99
1)
The component name must be typed out in full
project_search.txt · Last modified: 2021/08/17 01:57 by 73.95.178.156