# EditorToolbarDropdown

> Constructor.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEditor.Toolbars](/engine/6000.6/script-reference/unityeditor/toolbars.md)
* **Assembly:** UnityEditor

## EditorToolbarDropdown()

Constructor.

```csharp
public EditorToolbarDropdown()
```

## EditorToolbarDropdown(Action)

Constructor.

```csharp
public EditorToolbarDropdown(Action clickEvent)
```

### Parameters

**** (\[Action]\(https\://learn.microsoft.com/dotnet/api/system.action)): Action triggered when the button is clicked. Usually opens a window or a dropdown menu through the use of [GenericMenu](/engine/6000.6/script-reference/unityeditor/genericmenu.md).

## EditorToolbarDropdown(string, Action)

Constructor.

```csharp
public EditorToolbarDropdown(string text, Action clickEvent)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The text associated with the element.**** (\[Action]\(https\://learn.microsoft.com/dotnet/api/system.action)): Action triggered when the button is clicked. Usually opens a window or a dropdown menu through the use of [GenericMenu](/engine/6000.6/script-reference/unityeditor/genericmenu.md).

## EditorToolbarDropdown(Texture2D, Action)

Constructor.

```csharp
public EditorToolbarDropdown(Texture2D icon, Action clickEvent)
```

### Parameters

**** (\[Texture2D]\(/engine/6000.6/script-reference/unityengine/texture2d)): The icon associated with the element.**** (\[Action]\(https\://learn.microsoft.com/dotnet/api/system.action)): Action triggered when the button is clicked. Usually opens a window or a dropdown menu through the use of [GenericMenu](/engine/6000.6/script-reference/unityeditor/genericmenu.md).

## EditorToolbarDropdown(string, Texture2D, Action)

Constructor.

```csharp
public EditorToolbarDropdown(string text, Texture2D icon, Action clickEvent)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The text associated with the element.**** (\[Texture2D]\(/engine/6000.6/script-reference/unityengine/texture2d)): The icon associated with the element.**** (\[Action]\(https\://learn.microsoft.com/dotnet/api/system.action)): Action triggered when the button is clicked. Usually opens a window or a dropdown menu through the use of [GenericMenu](/engine/6000.6/script-reference/unityeditor/genericmenu.md).
