# Sandbox.UI.AssetPreviewPanel

Displays a resource using a panel registered with AssetPreviewForAttribute.
The preview owns the child panel. The caller retains ownership of the resource.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.Panel](/api/Sandbox.UI.Panel)
- Modifiers: sealed

## Constructors

- [`AssetPreviewPanel`](/api/Sandbox.UI.AssetPreviewPanel/.ctor): Creates an empty preview.

## Properties

- [`Asset`](/api/Sandbox.UI.AssetPreviewPanel/Asset): Resource to display. Assign null to clear the preview.
