Version: 2022.2
LanguageEnglish
  • C#

ISearchView

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

Search view interface used by the search context to execute UI operations.

Properties

contextReturns the current view search context.
displayModeIndicates how the data is displayed in the UI.
filterCallbackCallback used to filter items shown in the list.
itemIconSizeDefines the size of items in the search view.
multiselectAllows multi-selection of items in the list/grid of items. If false, a user can only select a single item.
positionReturns the absolute position of the Search window.
resultsReturns the list of all search results.
selectCallbackCallback used to override a default Search behavior.
selectionReturns the selected items in the view.
trackingCallbackCallback used to override the tracking behavior.

Public Methods

AddSelectionAdds new items to the current selection.
CloseCloses the search view.
ExecuteActionExecutes a Search action on a given list of items.
ExecuteSelectionExecute the default action of the active selection.
FocusMake sure the Search window is now selected to receive input from a user.
FocusSearchFocus the search text field control.
RefreshTriggers a refresh of the search view and refetches all the search items from enabled search providers.
RepaintRequests the search view to repaint itself.
SelectSearchPuts focus in the SearchView text field AND selects all the text inside the text field (if any).
SetColumnsSets the search view property table columns.
SetSearchTextSets the search query text.
SetSelectionUpdates the search view with a new selection.
ShowItemContextualMenuShows a contextual menu for the specified item.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961