Version: 2021.2

EditorToolbarButtonConstructor

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

参数

clickEvent 单击按钮时触发的操作。
text 与元素关联的文本。
icon The icon associated with the element.

描述

构造函数。