文档

Unity Engine

Unity Engine

EditorToolbarDropdownToggle

Constructor.
阅读时间1 分钟最后更新于 1 个月前

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.