Documentation

Unity Engine


Unity Engine


EditorToolbarDropdown

Constructor.
Read time 1 minuteLast updated a month ago

Definition

EditorToolbarDropdown()

Constructor.
public EditorToolbarDropdown()

EditorToolbarDropdown(Action)

Constructor.
public EditorToolbarDropdown(Action clickEvent)

Parameters

clickEvent

Action triggered when the button is clicked. Usually opens a window or a dropdown menu through the use of GenericMenu.

EditorToolbarDropdown(string, Action)

Constructor.
public EditorToolbarDropdown(string text, Action clickEvent)

Parameters

text

The text associated with the element.

clickEvent

Action triggered when the button is clicked. Usually opens a window or a dropdown menu through the use of GenericMenu.

EditorToolbarDropdown(Texture2D, Action)

Constructor.
public EditorToolbarDropdown(Texture2D icon, Action clickEvent)

Parameters

The icon associated with the element.

clickEvent

Action triggered when the button is clicked. Usually opens a window or a dropdown menu through the use of GenericMenu.

EditorToolbarDropdown(string, Texture2D, Action)

Constructor.
public EditorToolbarDropdown(string text, Texture2D icon, Action clickEvent)

Parameters

text

The text associated with the element.

The icon associated with the element.

clickEvent

Action triggered when the button is clicked. Usually opens a window or a dropdown menu through the use of GenericMenu.