# HasPreviewGUI()

> Can this component be Previewed in its current state?

## Definition

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

```csharp
public virtual bool HasPreviewGUI()
```

### Returns

| Type                                                          | Description                                                   |
| ------------------------------------------------------------- | ------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if this component can be Previewed in its current state. |

### Remarks

Additional Resources: HasPreviewGUI.
