ほとんどの検索プロバイダーは QueryEngine
(Scene、Asset、Objects、Resource プロバイダー) を使ってクエリの解析と解決をします。これらは基本的な一揃いのクエリ演算子をサポートしており、Boolean 演算子やかっこによるグループ化を使って、より複雑なクエリを行うことができます。このページの表は、サポートされているクエリ演算子の一覧です。
大文字小文字の区別: ほとんどの検索クエリは大文字と小文字を区別しません。例えば、 Stone
、stone
、sToNe
は同じ結果になります。
フィルター | 検索トークン | 説明 |
---|---|---|
基本検索 | <any partial name> |
main Main という語に一致するものを検索します。 |
かつ | and |
Main and t:camera 名に Main が含まれ、タイプ名に camera が含まれるものを検索します。t:texture and jpg ファイル名に jpg を含むすべての texture タイプを検索します。ノート: and は QueryEngine のデフォルトの演算子 なので、最後のクエリはt:texture jpg と同じです。 |
または | or |
Player or Monster Player または Monster という単語を含む物を検索します。 |
グループ | (<group content>) |
t:Character and (status=Poison or status=Stunned) status プロパティの値が Poison または Stunned のいずれかである Character コンポーネントを検索します。 |
除外 | -<Expression to exclude> |
p: dep:door -t:Scene door という単語を含むアセットに依存関係を持ち、かつ Scene タイプではないアセットを全て検索します。p: dep:door -stone door という単語を含むアセットに依存関係を持ち、かつ stone という語を含まないアセットを全て検索します。 |
完全一致演算子 | !<something> |
Search での文字列マッチングのほとんどは、部分一致を返します。! 演算子を使うと、完全 一致を返します。p: stone stone という単語を含むすべてのアセット を検索します ( stone_hammer.png 、stone_door.prefab など)。p: !stone 正確に stone という名前を持つすべてのアセットを検索します (例えば stone.png )。 |
値の部分一致 (:) | property:<partial value> |
ref:aster : が使われているので、名に aster (例えば asteroid2 、asteroids ) という語を含むアセットを依存関係に持つ全てのアセットを検索します。 |
値の正確一致 (=) | property=exactValue |
ref=asteroid = が使われているので、asteroid に名が正確に一致するアセットを依存関係に持つ全てのアセットを検索します。 |
> | property>number |
t:texture size>256 256 バイトより大きなサイズのテクスチャをすべて検索します。 |
< | property<number |
t:texture size<256 256 バイトより小さいサイズのテクスチャをすべて検索します。 |
!= | property!=number |
t:texture size!=256 256 バイト以外のサイズのテクスチャをすべて検索します。 |
>= | property>=number |
t:texture size>=256 256 バイト以上のサイズのテクスチャをすべて検索します。 |
<= | property>number |
t:texture size<=256 256 バイト以下のサイズのテクスチャをすべて検索します。 |
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.