# HasPreviewGUI()

> Returns true if the Terrain Layer has a preview GUI.

## Definition

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

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

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

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