Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EditorToolbarButton

Constructor.
Read time 1 minuteLast updated 5 days ago

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.