Version: 2022.2

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