# HasPreviewGUI()

> Checks if the Terrain Layer has a preview GUI.

## Definition

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

```csharp
public override bool HasPreviewGUI()
```

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the Terrain Layer has a preview GUI. Otherwise, false. |

### Remarks

Additional Resources: [Editor.HasPreviewGUI()](/engine/7000.0/script-reference/unityeditor/editor/haspreviewgui.md).
