# BackgroundRepeat

> Script interface for VisualElement background-repeat style property _backgroundRepeat.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Implements:** [IEquatable\<BackgroundRepeat>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct BackgroundRepeat : IEquatable<BackgroundRepeat>
```

## Fields

| Value                                                                             | Description                           |
| --------------------------------------------------------------------------------- | ------------------------------------- |
| [x](/engine/6000.6/script-reference/unityengine/uielements/backgroundrepeat/x.md) | Background repeat in the x direction. |
| [y](/engine/6000.6/script-reference/unityengine/uielements/backgroundrepeat/y.md) | Background repeat in the y direction. |

## Constructors

| Constructor                                                                                                                                                      | Description                                   |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- |
| [BackgroundRepeat(UnityEngine.UIElements.Repeat,UnityEngine.UIElements.Repeat)](/engine/6000.6/script-reference/unityengine/uielements/backgroundrepeat/ctor.md) | Create a BackgroundRepeat with x and y repeat |
