Version: 2023.2

EditorToolbarDropdownToggleConstructor

切换到手册
public EditorToolbarDropdownToggle ();
public EditorToolbarDropdownToggle (Action dropdownClickEvent);
public EditorToolbarDropdownToggle (string text, Action dropdownClickEvent);
public EditorToolbarDropdownToggle (Texture2D icon, Action dropdownClickEvent);
public EditorToolbarDropdownToggle (string text, Texture2D icon, Action dropdownClickEvent);

参数

text 与元素关联的文本。
icon 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.

描述

构造函数。