# Sandbox.UI.AssetPreviewForAttribute

Registers a Panel as the preview for a resource type. Its public constructor takes
the resource to display. The most specific matching resource type is used.

- Kind: attribute
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`AssetPreviewForAttribute`](/api/Sandbox.UI.AssetPreviewForAttribute/.ctor): Registers a Panel as the preview for a resource type. Its public constructor takes the resource to display. The most specific matching resource type is used.

## Properties

- [`ResourceType`](/api/Sandbox.UI.AssetPreviewForAttribute/ResourceType): The resource type accepted by the panel's constructor.
