# VerticalAndHorizontal

> Configure ScrollView for vertical and horizontal scrolling.

## Definition

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

```csharp
VerticalAndHorizontal = 2
```

### Remarks

Requires elements with the height property explicitly defined. A ScrollView configured with this mode has the [\_verticalHorizontalVariantUssClassName](/engine/6000.5/script-reference/unityengine/uielements/scrollview/verticalhorizontalvariantussclassname.md) class in its class list. The difference with the vertical mode is that content will not wrap.
