# Scroller

> Constructor.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

## Scroller()

Constructor.

```csharp
public Scroller()
```

## Scroller(float, float, Action\<float>, SliderDirection)

Constructor.

```csharp
public Scroller(float lowValue, float highValue, Action<float> valueChanged, SliderDirection direction = SliderDirection.Vertical)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): **** (\[Action\<float>]\(https\://learn.microsoft.com/dotnet/api/system.action)): **** (\[SliderDirection]\(/engine/6000.0/script-reference/unityengine/uielements/sliderdirection)):&#x20;
