Version: 2022.2
LanguageEnglish
  • C#

ISearchQuery

interface in UnityEditor.Search

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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.

Properties

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.

Public Methods

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