# TextureWrapMode

> Wrap mode for textures.

## Definition

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

```csharp
public enum TextureWrapMode
```

## Remarks

Corresponds to the settings in a [texture inspector](/engine/6000.6/manual/materials-and-shaders/textures/textures-reference/class-texture-importer.md). Wrap mode determines how texture is sampled when texture coordinates are outside of the typical 0..1 range. For example, [TextureWrapMode.Repeat](/engine/6000.6/script-reference/unityengine/texturewrapmode/repeat.md) makes the texture tile, whereas [TextureWrapMode.Clamp](/engine/6000.6/script-reference/unityengine/texturewrapmode/clamp.md) makes the texture edge pixels be stretched when outside of of 0..1 range.

Additional Resources: [Texture.wrapMode](/engine/6000.6/script-reference/unityengine/texture/wrapmode.md), [texture assets](/engine/6000.6/manual/materials-and-shaders/textures/textures-reference/class-texture-importer.md).

## Fields

| Value                                                                                   | Description                                                                                |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [Clamp](/engine/6000.6/script-reference/unityengine/texturewrapmode/clamp.md)           | Clamps the texture to the last pixel at the edge.                                          |
| [Mirror](/engine/6000.6/script-reference/unityengine/texturewrapmode/mirror.md)         | Tiles the texture, creating a repeating pattern by mirroring it at every integer boundary. |
| [MirrorOnce](/engine/6000.6/script-reference/unityengine/texturewrapmode/mirroronce.md) | Mirrors the texture once, then clamps to edge pixels.                                      |
| [Repeat](/engine/6000.6/script-reference/unityengine/texturewrapmode/repeat.md)         | Tiles the texture, creating a repeating pattern.                                           |
