# MainToolbarContent

> Specify a visual content descriptor for a main toolbar element.

## Definition

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

## MainToolbarContent()

Specify a visual content descriptor for a main toolbar element.

```csharp
public MainToolbarContent()
```

## MainToolbarContent(string)

Specify a visual content descriptor for a main toolbar element.

```csharp
public MainToolbarContent(string text)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The text of this element.

## MainToolbarContent(string, string)

Specify a visual content descriptor for a main toolbar element.

```csharp
public MainToolbarContent(string text, string tooltip)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The text of this element.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The tooltip of this element.

## MainToolbarContent(Texture2D)

Specify a visual content descriptor for a main toolbar element.

```csharp
public MainToolbarContent(Texture2D image)
```

### Parameters

**** (\[Texture2D]\(/engine/6000.7/script-reference/unityengine/texture2d)): The icon of this element.

## MainToolbarContent(Texture2D, string)

Specify a visual content descriptor for a main toolbar element.

```csharp
public MainToolbarContent(Texture2D image, string tooltip)
```

### Parameters

**** (\[Texture2D]\(/engine/6000.7/script-reference/unityengine/texture2d)): The icon of this element.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The tooltip of this element.

## MainToolbarContent(string, Texture2D, string)

Specify a visual content descriptor for a main toolbar element.

```csharp
public MainToolbarContent(string text, Texture2D image, string tooltip)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The text of this element.**** (\[Texture2D]\(/engine/6000.7/script-reference/unityengine/texture2d)): The icon of this element.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The tooltip of this element.
