---
name: GradientTileMode
last_updated: 2026-08-10T22:37:25Z
type: enum
summary: "Controls how a UIGradient tiles when its gradient sequence doesn't span the full render area."
---

# GradientTileMode

Controls how a [UIGradient](/docs/reference/engine/classes/UIGradient.md) tiles when its gradient sequence doesn't
span the full render area.

**Type:** enum

## Description

`GradientTileMode` determines what happens when a [UIGradient](/docs/reference/engine/classes/UIGradient.md)'s
color/transparency sequence covers less than the full length of the UI element
it modifies. The default mode is [GradientTileMode.Clamp](/docs/reference/engine/enums/GradientTileMode.md), which is also
the default value of [UIGradient.TileMode](/docs/reference/engine/classes/UIGradient.md).

## Items

| Name | Value | Description |
|------|-------|-------------|
| `Clamp` | 0 | Extends the gradient's terminal colors beyond the defined sequence range without repeating. |
| `Repeat` | 1 | Repeats the gradient sequence from the start each time it reaches the end, producing a tiled pattern. |
| `Mirror` | 2 | Repeats the gradient by reversing direction with each tile, producing a mirrored pattern. |