Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EditorToolbarDropdownToggle

Constructor.
Read time 1 minuteLast updated 13 days ago

Definition

EditorToolbarDropdownToggle()

Constructor.
public EditorToolbarDropdownToggle()

EditorToolbarDropdownToggle(Action)

Constructor.
public EditorToolbarDropdownToggle(Action dropdownClickEvent)

Parameters

dropdownClickEvent

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

EditorToolbarDropdownToggle(string, Action)

Constructor.
public EditorToolbarDropdownToggle(string text, Action dropdownClickEvent)

Parameters

text

The text associated with the element.

dropdownClickEvent

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

EditorToolbarDropdownToggle(Texture2D, Action)

Constructor.
public EditorToolbarDropdownToggle(Texture2D icon, Action dropdownClickEvent)

Parameters

The icon associated with the element.

dropdownClickEvent

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

EditorToolbarDropdownToggle(string, Texture2D, Action)

Constructor.
public EditorToolbarDropdownToggle(string text, Texture2D icon, Action dropdownClickEvent)

Parameters

text

The text associated with the element.

The icon associated with the element.

dropdownClickEvent

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