# EditorToolbarSlider

> Constructor for the EditorToolbarSlider.

## Definition

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

## EditorToolbarSlider()

Constructor for the [EditorToolbarSlider](/engine/6000.6/script-reference/unityeditor/toolbars/editortoolbarslider.md).

```csharp
public EditorToolbarSlider()
```

## EditorToolbarSlider(string, float, float)

Constructor for the [EditorToolbarSlider](/engine/6000.6/script-reference/unityeditor/toolbars/editortoolbarslider.md).

```csharp
public EditorToolbarSlider(string text, float start, float end)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The text associated with the slider.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The start value of the slider, it has to be lower than the end value.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The end value of the slider, it has to be higher than the start value.

## EditorToolbarSlider(Texture2D, float, float)

Constructor for the [EditorToolbarSlider](/engine/6000.6/script-reference/unityeditor/toolbars/editortoolbarslider.md).

```csharp
public EditorToolbarSlider(Texture2D icon, float start, float end)
```

### Parameters

**** (\[Texture2D]\(/engine/6000.6/script-reference/unityengine/texture2d)): The icon associated with the slider.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The start value of the slider, it has to be lower than the end value.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The end value of the slider, it has to be higher than the start value.

## EditorToolbarSlider(string, Texture2D, float, float)

Constructor for the [EditorToolbarSlider](/engine/6000.6/script-reference/unityeditor/toolbars/editortoolbarslider.md).

```csharp
public EditorToolbarSlider(string text, Texture2D icon, float start, float end)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The text associated with the slider.**** (\[Texture2D]\(/engine/6000.6/script-reference/unityengine/texture2d)): The icon associated with the slider.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The start value of the slider, it has to be lower than the end value.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The end value of the slider, it has to be higher than the start value.
