# MainToolbar

> Interface for the main toolbar of the Unity Editor.

## Definition

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

```csharp
public static class MainToolbar
```

## Remarks

The only method on this interface is [MainToolbar.Refresh](/engine/6000.6/script-reference/unityeditor/toolbars/maintoolbar/refresh.md), which you can call to update a specific element in the toolbar. To add custom elements to the toolbar look at [MainToolbarElementAttribute](/engine/6000.6/script-reference/unityeditor/toolbars/maintoolbarelementattribute.md) and [MainToolbarElement](/engine/6000.6/script-reference/unityeditor/toolbars/maintoolbarelement.md).

## Static Methods

| Method                                                                                 | Description                                                                      |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| [Refresh](/engine/6000.6/script-reference/unityeditor/toolbars/maintoolbar/refresh.md) | Notify the main toolbar to update the content or behaviour of a toolbar element. |
