# TerrainLayerUtility

> A set of helper functions for using terrain layers.

## Definition

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

```csharp
public static class TerrainLayerUtility
```

## Static Methods

| Method                                                                                                                                  | Description                                                                                                                                                                  |
| --------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [CheckNormalMapTextureType](/engine/6000.6/script-reference/unityeditor/terrainlayerutility/checknormalmaptexturetype.md)               | Checks whether the texture is correctly imported as a normal map texture.                                                                                                    |
| [ShowTerrainLayerGUI](/engine/6000.6/script-reference/unityeditor/terrainlayerutility/showterrainlayergui.md)                           | This helper function shows the Terrain Layer Inspector GUI nested inside the current Inspector GUI.                                                                          |
| [ShowTerrainLayersSelectionHelper](/engine/6000.6/script-reference/unityeditor/terrainlayerutility/showterrainlayersselectionhelper.md) | Helper function to show the layer selection window for selecting terrain layers in inspector.                                                                                |
| [TilingSettingsUI](/engine/6000.6/script-reference/unityeditor/terrainlayerutility/tilingsettingsui.md)                                 | Displays the tiling settings UI.                                                                                                                                             |
| [ValidateDiffuseTextureUI](/engine/6000.6/script-reference/unityeditor/terrainlayerutility/validatediffusetextureui.md)                 | 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.    |
| [ValidateMaskMapTextureUI](/engine/6000.6/script-reference/unityeditor/terrainlayerutility/validatemaskmaptextureui.md)                 | Checks whether the texture is a valid TerrainLayer mask map texture. If it detects that the texture is not valid, it displays a warning message that identifies the issue.   |
| [ValidateNormalMapTextureUI](/engine/6000.6/script-reference/unityeditor/terrainlayerutility/validatenormalmaptextureui.md)             | 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. |
