Version: 2022.3

EditorToolbarDropdownConstructor

切换到手册
public EditorToolbarDropdown ();
public EditorToolbarDropdown (Action clickEvent);
public EditorToolbarDropdown (string text, Action clickEvent);
public EditorToolbarDropdown (Texture2D icon, Action clickEvent);
public EditorToolbarDropdown (string text, Texture2D icon, Action clickEvent);

参数

clickEvent Action triggered when the button is clicked. Usually opens a window or a dropdown menu through the use of GenericMenu.
icon The icon associated with the element.
text 与元素关联的文本。

描述

构造函数。