文档

Unity Engine

Unity Engine

EditorToolbarButton

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

Definition

EditorToolbarButton()

Constructor.
public EditorToolbarButton()

EditorToolbarButton(Action)

Constructor.
public EditorToolbarButton(Action clickEvent)

Parameters

clickEvent

Action triggered when the button is clicked.

EditorToolbarButton(string, Action)

Constructor.
public EditorToolbarButton(string text, Action clickEvent)

Parameters

text

The text associated with the element.

clickEvent

Action triggered when the button is clicked.

EditorToolbarButton(Texture2D, Action)

Constructor.
public EditorToolbarButton(Texture2D icon, Action clickEvent)

Parameters

The icon associated with the element.

clickEvent

Action triggered when the button is clicked.

EditorToolbarButton(string, Texture2D, Action)

Constructor.
public EditorToolbarButton(string text, Texture2D icon, Action clickEvent)

Parameters

text

The text associated with the element.

The icon associated with the element.

clickEvent

Action triggered when the button is clicked.