# EditorToolbarDropdownToggle

> Constructor.

## Definition

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

## EditorToolbarDropdownToggle()

Constructor.

```csharp
public EditorToolbarDropdownToggle()
```

## EditorToolbarDropdownToggle(Action)

Constructor.

```csharp
public EditorToolbarDropdownToggle(Action dropdownClickEvent)
```

### Parameters

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

## EditorToolbarDropdownToggle(string, Action)

Constructor.

```csharp
public EditorToolbarDropdownToggle(string text, Action dropdownClickEvent)
```

### 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 dropdown is clicked. Usually opens a window or a dropdown menu through the use of [GenericMenu](/engine/6000.7/script-reference/unityeditor/genericmenu.md).

## EditorToolbarDropdownToggle(Texture2D, Action)

Constructor.

```csharp
public EditorToolbarDropdownToggle(Texture2D icon, Action dropdownClickEvent)
```

### Parameters

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

## EditorToolbarDropdownToggle(string, Texture2D, Action)

Constructor.

```csharp
public EditorToolbarDropdownToggle(string text, Texture2D icon, Action dropdownClickEvent)
```

### Parameters

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