# ValidateDiffuseTextureUI(Texture2D)

> Checks whether the texture is a valid TerrainLayer diffuse texture. If it detects that the texture is not valid, it displays a warning message that identifies the issue.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static void ValidateDiffuseTextureUI(Texture2D texture)
```

### Parameters

**** (\[Texture2D]\(/engine/6000.0/script-reference/unityengine/texture2d)): The texture to validate.

### Remarks

A valid diffuse texture must have [TextureWrapMode.Repeat](/engine/6000.0/script-reference/unityengine/texturewrapmode/repeat.md) wrap mode and mipmaps enabled.
