# BackgroundSize

> Create a BackgroundSize with x and y repeat

## Definition

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

## BackgroundSize(Length, Length)

Create a BackgroundSize with x and y repeat

```csharp
public BackgroundSize(Length sizeX, Length sizeY)
```

### Parameters

**** (\[Length]\(/engine/6000.5/script-reference/unityengine/uielements/length)): **** (\[Length]\(/engine/6000.5/script-reference/unityengine/uielements/length)):&#x20;

## BackgroundSize(BackgroundSizeType)

Create a BackgroundSize using Enum

```csharp
public BackgroundSize(BackgroundSizeType sizeType)
```

### Parameters

**** (\[BackgroundSizeType]\(/engine/6000.5/script-reference/unityengine/uielements/backgroundsizetype)):&#x20;
