Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


project_search

This is an old revision of the document!


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.

Syntax

Search Term Result
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)

Glob Syntax

Syntax What this matches
* Any number of any character
? Any single character
(XYZ) 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
(XYZ) Any one of the string X, Y, or Z, or nothing
Text(_test).png Either Text.png or Text_test.png

The glob syntax applies to names, not paths.

1)
The component name must be typed out in full
project_search.1629164926.txt.gz · Last modified: 2021/08/17 01:48 by 73.95.178.156