# Repeat

> Defines how the background is repeated.

## Definition

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

```csharp
public enum Repeat
```

## Fields

| Value                                                                                 | Description                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [NoRepeat](/engine/6000.6/script-reference/unityengine/uielements/repeat/norepeat.md) | The background-image isn't repeated. The image is only shown once. This is the default to keep background compatibility with unity-background-scale-mode.                                         |
| [Repeat](/engine/6000.6/script-reference/unityengine/uielements/repeat/repeat.md)     | The background image is repeated both vertically and horizontally. The last image will be clipped if it doesn't fit.                                                                              |
| [Round](/engine/6000.6/script-reference/unityengine/uielements/repeat/round.md)       | The background-image is repeated and squished or stretched to fill the space (no gaps).                                                                                                           |
| [Space](/engine/6000.6/script-reference/unityengine/uielements/repeat/space.md)       | The background-image is repeated as much as possible without clipping. The first and last image is pinned to either side of the element, and whitespace is distributed evenly between the images. |
