# AddressMode

> Specifies how the gradient is sampled when UV coordinates are outside the [0, 1] range.

## Definition

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

```csharp
public enum AddressMode
```

## Remarks

[AddressMode.Wrap](/engine/6000.6/script-reference/unityengine/uielements/addressmode/wrap.md) repeats the gradient, creating a tiled effect. [AddressMode.Clamp](/engine/6000.6/script-reference/unityengine/uielements/addressmode/clamp.md) extends the edge colors of the gradient beyond the \[0, 1] range. [AddressMode.Mirror](/engine/6000.6/script-reference/unityengine/uielements/addressmode/mirror.md) repeats the gradient, but mirrors it at every integer boundary, creating a seamless mirrored tiling.

## Fields

| Value                                                                                  | Description                                                                                          |
| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| [Clamp](/engine/6000.6/script-reference/unityengine/uielements/addressmode/clamp.md)   | Extends the edge colors of the gradient beyond the \[0, 1] range.                                    |
| [Mirror](/engine/6000.6/script-reference/unityengine/uielements/addressmode/mirror.md) | Repeats the gradient, but mirrors it at every integer boundary, creating a seamless mirrored tiling. |
| [Wrap](/engine/6000.6/script-reference/unityengine/uielements/addressmode/wrap.md)     | Repeats the gradient when sampling outside the \[0, 1] range, creating a tiled effect.               |
