Unity - Scripting API: Search.SearchViewState.CreatePickerState
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.
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.
Declaration
public static SearchViewState CreatePickerState(string title, SearchContext context, Action<Object, bool> selectObjectHandler, Action<Object> trackingObjectHandler, string typeName, Type filterType, SearchViewFlags flags);
Declaration
public static SearchViewState CreatePickerState(string title, SearchContext context, Action<SearchItem, bool> selectHandler, Action<SearchItem> trackingHandler, Func<SearchItem, bool> filterHandler, SearchViewFlags flags);
Parameters
| Parameter | Description |
|---|---|
| title | Title of the picker window. |
| context | SearchContext used to setup whcih SearchProvider and initial query are setup for this Picker. |
| selectObjectHandler | Selector Callback. |
| trackingObjectHandler | Callbacks triggeeds when the select selects an item. |
| typeName | Name of the type of assets or components we want to pick. |
| filterType | Type of the items we want to pick. |
| flags | Flags specifying how the picker view should be displayed. |
| selectHandler | Selector Callback. |
| trackingHandler | Callbacks triggeeds when the select selects an item. |
| filterHandler | Filtering calback. |
Returns
SearchViewState Returns a view state use to open an Object picker.
Description
Create a SearchViewState specially setup to show an Object Picker.