Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SearchAction

Default constructor to build a search action.
Read time 2 minutesLast updated 10 days ago

Definition

SearchAction(string, string, GUIContent)

Default constructor to build a search action.
public SearchAction(string providerId, string id, GUIContent content)

Parameters

providerId

The search provider ID that supports this action.

Unique action id used to find it back later.

content

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

providerId

The search provider ID that supports this action.

Unique action id used to find it back later.

content

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

providerId

The search provider ID that supports this action.

Unique action id used to find it back later.

content

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

providerId

The search provider ID that supports this action.

name

Label name when displaying the action in the Action Menu.

Icon for the action in the Action Menu.

tooltip

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

providerId

The search provider ID that supports this action.

name

Label name when displaying the action in the Action Menu.

Icon for the action in the Action Menu.

tooltip

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)

Parameters

providerId

The search provider ID that supports this action.

name

Label name when displaying the action in the Action Menu.

Icon for the action in the Action Menu.

tooltip

Tooltip associated with the action when displayed in the Action Menu.