# ToolbarButton

> Constructor.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEditor.UIElements](/engine/6000.7/script-reference/unityeditor/uielements.md)
* **Assembly:** UnityEditor.CoreModule

## ToolbarButton(Action)

Constructor.

```csharp
public ToolbarButton(Action clickEvent)
```

### Parameters

**** (\[Action]\(https\://learn.microsoft.com/dotnet/api/system.action)): The action to be called when the button is pressed.

## ToolbarButton()

Constructor.

```csharp
public ToolbarButton()
```
