# EditorToolbarElementAttribute(string, params Type[])

> The EditorToolbarElement attribute allows you to make available a specific VisualElement for use in an Editor Toolbar.

## Definition

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

## EditorToolbarElementAttribute(string, Type\[])

```csharp
public EditorToolbarElementAttribute(string id, params Type[] targetWindows)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Element's ID.**** (\[Type\[]]\(https\://learn.microsoft.com/dotnet/api/system.type)): Targeted contexts.
