# ValidateNormalMapTextureUI(Texture2D, bool)

> Checks whether the texture is a valid TerrainLayer normal map 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.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static void ValidateNormalMapTextureUI(Texture2D texture, bool normalMapTextureType)
```

### Parameters

**** (\[Texture2D]\(/engine/6000.5/script-reference/unityengine/texture2d)): The texture to validate.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): The return value from the [TerrainLayerUtility.CheckNormalMapTextureType](/engine/6000.5/script-reference/unityeditor/terrainlayerutility/checknormalmaptexturetype.md) method indicating whether the texture is imported as a normal map.

### Remarks

A valid normal map texture must be correctly imported as a normal map, have [TextureWrapMode.Repeat](/engine/6000.5/script-reference/unityengine/texturewrapmode/repeat.md) wrap mode and mipmaps enabled.
