SearchAction
Default constructor to build a search action.
Read time 2 minutesLast updated 10 days ago
Definition
- Type: Constructor
- Namespace: UnityEditor.Search
- Assembly: UnityEditor
SearchAction(string, string, GUIContent)
Default constructor to build a search action.
public SearchAction(string providerId, string id, GUIContent content)
Parameters
The search provider ID that supports this action.
Unique action id used to find it back later.
Displays the displayname, an icon, and a tooltip when displaying the action in the Action Menu.
SearchAction(string, string, GUIContent, Action<SearchItem[]>)
Default constructor to build a search action.
public SearchAction(string providerId, string id, GUIContent content, Action<SearchItem[]> handler)
Parameters
The search provider ID that supports this action.
Unique action id used to find it back later.
Displays the displayname, an icon, and a tooltip when displaying the action in the Action Menu.
Handler that executes the action.
SearchAction(string, string, GUIContent, Action<SearchItem>)
Default constructor to build a search action.
public SearchAction(string providerId, string id, GUIContent content, Action<SearchItem> handler)
Parameters
The search provider ID that supports this action.
Unique action id used to find it back later.
Displays the displayname, an icon, and a tooltip when displaying the action in the Action Menu.
Handler that executes the action.
SearchAction(string, string, Texture2D, string, Action<SearchItem[]>)
Default constructor to build a search action.
public SearchAction(string providerId, string name, Texture2D icon, string tooltip, Action<SearchItem[]> handler)
Parameters
The search provider ID that supports this action.
Label name when displaying the action in the Action Menu.
Icon for the action in the Action Menu.
Tooltip associated with the action when displayed in the Action Menu.
Handler that executes the action.
SearchAction(string, string, Texture2D, string, Action<SearchItem>)
Default constructor to build a search action.
public SearchAction(string providerId, string name, Texture2D icon, string tooltip, Action<SearchItem> handler)
Parameters
The search provider ID that supports this action.
Label name when displaying the action in the Action Menu.
Icon for the action in the Action Menu.
Tooltip associated with the action when displayed in the Action Menu.
Handler that executes the action.
SearchAction(string, string, Texture2D, string)
Default constructor to build a search action.
public SearchAction(string providerId, string name, Texture2D icon = null, string tooltip = null)