Version: 2021.1
言語: 日本語
Unity Search
Filtering searches

Using Search

Search を使うには、以下を行います。

  1. Search を起動
  2. 検索の実行
  3. 結果のアイテムに対してアクションを実行

Search を起動

To open the Search window:

From the Unity menu:
Choose Edit > Search All.

ショートカット

ショートカット 機能
Ctrl + K Open Search in the state it was in the last time you used it.
- The last search term you used appears in the search field.
- The last changes you made to the filter configuration are still in effect.

Tip: You can change the keyboard shortcuts used to launch Search from the Shortcuts Manager.

Searching

To perform regular or special searches, type a query into the search field.

ほとんどの検索クエリでは、Search All ウィンドウと、プロジェクトで作成されたデフォルトのアセットインデックスを使用すると、コンテンツを効率的に見つけることができます。

Regular searches

A regular search uses all regular Search Providers unless you exclude them.

  • To perform a regular search using all active Search Providers, enter the search terms in the search field. Results appear as you type.

  • To only display results for a specific Search Provider, prefix the search terms with the Search Provider’s search token.

    A search token is a text string that you can use in the search field to search using only a specific Search Provider.

    Press the Tab key with your cursor in the Search field to view the regular search provider prefixes.

  • To mute Search Providers, see Persistent search filters

The following table lists regular Search Providers and their search tokens:

Provider: 機能 Search token:
Project Searches Project Assets. p: (for “project”) p:Player

Searches for Assets that match the term “Player”.
Hierarchy Searches GameObjects in the Scene. h: (for “hierarchy”) h:Main Camera

Searches the current Scene for GameObjects that match the term “Main Camera”.
Settings Searches all Project Settings and Preferences. set: set:VFX

Finds Project Settings and Preferences pages that match the term “VFX”.
Menus Searches the Unity main menu. m: m:TextMesh Pro

Searches the Unity main menu for commands that contain “TextMesh Pro.”

Note: If you create new search indexes in the Index Manager, they are also displayed in your More Options(:) menu.

Special searches

A special search is opt-in: Search only uses special Search Providers when you perform a special search.

  • To perform a special search, prefix the search terms with the Provider’s search token.

    Select a special search provider from the More Options(:) menu.

The following table lists special Search Providers and their search tokens:

Provider: 機能 Search token:
Help Searches the Quick Search help. ? ?asset

Searches for Search help entries containing the word “Asset”.
Calculator Computes mathematical expressions. = =2*3+29/2

Calculates the answer to the expression 2*3+29/2.
Files Searches for files find: find:Paint Mat

Searches for all assets paths containing the words paint AND the word mat (for example: PaintBrush_Mat.mat, DryWallPainted_Mat.mat)
Static API Finds and executes static API methods. # #Mesh

Searches for static API methods with “Mesh” in their names.
Packages Searches the Unity package database. pkg: pkg:vector

Searches the Unity package database for packages that match the term “vector”.
Asset Store Searches the Unity Asset Store. store: store:texture

Searches the Unity Asset Store for Assets that match the term “texture”.
Saved Queries Searches for saved queries q: q:enemies

Searches all saved searches containing the word “enemies”.
Logs Searches the Editor.log file log: log:cache

Searches the Editor.log file for information that matches “cache”.

Navigating search results

Alt + ↑ (上矢印) と (下矢印) で検索履歴を循環させたり、左ペインから保存した検索を選択します。

Performing actions

After you search, you can perform actions on the items Search returns in the Preview Inspector pane or through More Options () on the item in the result list. The actions you can perform depend on the type of item.

例えば、Search がパッケージを返した場合、それをインストール/アンインストールすることができます。Search がアセットを返した場合、Hierarchy ウィンドウでそれを選択したり、開いたり、ハイライトしたりすることができます。

To find out which actions you can perform on different types of items, see the pages for individual search filters in the Regular searches and Special searches sections.

デフォルトのアクション

すべての種類のアイテムには、デフォルトのアクションがあります。

あるアイテムのデフォルトアクションを実行するには、以下のいずれかを行います。

  • アイテムをダブルクリックする。
  • アイテムを選択し、Enter を選びます。

Note: You can edit the default actions in the Search section of the Preferences page.

その他のオプション

いくつかのアイテムは、プレビューインスペクターメニューからアクセスする追加アクションをサポートしています。

アイテムの追加アクションのコンテキストメニューにアクセスするには、以下のいずれかを実行します。

  • アイテムを右クリックします。
  • More Options () を選択します。

また、以下のショートカットを使えば、コンテキストメニューを開かずに、選択したアイテムに対して追加の操作を行うことができます。

ショートカット 機能
Alt + Enter 2 番目のアクション
Alt + Ctrl + Enter 3 番目のアクション
Alt + Ctrl + Shift + Enter 4 番目のアクション

ドラッグアンドドロップ操作

一部の検索プロバイダー (例えば、AssetScene プロバイダー) は、ドラッグアンドドロップアクションをサポートします。結果エリアから、Hierarchy ウィンドウ、Scene ビュー、Inspector など、アイテムをサポートする Unity の任意の場所にドラッグすることができます。

Unity Search
Filtering searches
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961