Version: 2022.3

ISearchQuery

interface in UnityEditor.Search

切换到手册

描述

This search query interface is used when handling search query objects. These can be either assets saved in the user project or saved in the user preferences.

变量

creationTimeIndicates the binary long time of when the search query was created.
detailsSearch query description.
displayNameSearch query display name used in the UI.
filePathIndicates where the search query is saved on disk.
guidUnique GUID of the search query.
isSearchTemplateIndicates if the search query is displayed as a search template in the search view home page.
itemCountProvides a preview of how many results this query might yield if executed.
lastUsedTimeIndicates the last time the query was executed.
searchTextSearch query text.
thumbnailSearch query icon thumbnail set by the user if any.

公共函数

GetNameReturns the formatted name of the query depending on its source.
GetProviderIdsReturns the list of provider ids that search query is executed with.
GetProviderTypesReturns the list of aggregated type ids the search query executes with.
GetSearchTableReturns the query search table configuration if any.
GetViewStateReturns the search query view state.