# CustomPreviewAttribute(Type)

> Tells a DefaultPreview which class it's a preview for.

## Definition

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

```csharp
public CustomPreviewAttribute(Type type)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): The type you want to create a custom preview for.

### Remarks

When you make a custom preview, you need put this attribute on the preview class.
