ドキュメント

Unity Engine


User Manual

Script Reference

Unity Engine


Search presets

Finds presets in the project.
読み終わるまでの所要時間 2 分最終更新 25日前

The Presets search provider finds presets in your project. Presets are assets that you can use to apply identical property settings across multiple components, assets, or settings for projects.
The Project and Asset Database providers can find preset assets, but the Presets provider can search for specific preset types and by preset properties.

Query syntax

Provider token:
preset:
Query example: Searches for a preset with the property
flare
.
preset: prop:flare

Provider filters

The Presets provider has additional filters in the visual query builder. This table lists the filters and their textual query equivalents.

Filter

Search token

Query example

Description

Excluded Propertry
preset: exclude:<"property">
preset: exclude:"m_LocalRotation"
Find presets with the specified property in their Excluded Properties list.
Preset Property
preset: prop:<"property">
preset: prop:"m_LocalRotation.z"
Find presets with the specified property in their Properties list.
Preset Type
preset: t:<type>>
preset: t:transform
Find presets of the specific type, such as a transform component.

Results

Search window tab: Project.

Actions

The context menu for the Presets search provider includes the following actions:

Action

Description

SelectOpen the preset in the Inspector and Project windows.
OpenOpen the preset in the Unity Editor or an external editor.
ReimportFor imported presets, reimports the preset from the source file.
RevealOpens the preset in your operating system's file browser.
DeleteDeletes the preset. The Unity Editor requests confirmation before deleting.
Copy PathCopies the preset's path relative to your project's root folder to the clipboard.
Copy GUIDCopies the preset's GUID to the clipboard.
PropertiesOpens a Focused inspector window for the preset.

Additional resources