Version: 2022.3
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.