# Sample

> Struct for a package's sample, which is accessible from the Details panel of the Package Manager window.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor.PackageManager.UI](/engine/6000.5/script-reference/unityeditor/packagemanager/ui.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public struct Sample
```

## Properties

| Property                                                                                                       | Description                                                                                                          |
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| [description](/engine/6000.5/script-reference/unityeditor/packagemanager/ui/sample/description.md)             | The description of the package sample.                                                                               |
| [displayName](/engine/6000.5/script-reference/unityeditor/packagemanager/ui/sample/displayname.md)             | The display name of the package sample.                                                                              |
| [images](/engine/6000.5/script-reference/unityeditor/packagemanager/ui/sample/images.md)                       | Indicates the relative paths to where images used in the sample's description are located within the package.        |
| [importPath](/engine/6000.5/script-reference/unityeditor/packagemanager/ui/sample/importpath.md)               | The full path to where the sample will be imported, under the project assets folder.                                 |
| [interactiveImport](/engine/6000.5/script-reference/unityeditor/packagemanager/ui/sample/interactiveimport.md) | Indicates whether to show the import window when importing a sample that is an asset package (a .unitypackage file). |
| [isImported](/engine/6000.5/script-reference/unityeditor/packagemanager/ui/sample/isimported.md)               | Indicates if the sample has already been imported.                                                                   |
| [resolvedPath](/engine/6000.5/script-reference/unityeditor/packagemanager/ui/sample/resolvedpath.md)           | The full path to where the sample is on disk, inside the package that contains the sample.                           |

## Methods

| Method                                                                                   | Description                                          |
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| [Import](/engine/6000.5/script-reference/unityeditor/packagemanager/ui/sample/import.md) | Imports the package sample into the `Assets` folder. |

## Static Methods

| Method                                                                                                 | Description                                                       |
| ------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------- |
| [FindByPackage](/engine/6000.5/script-reference/unityeditor/packagemanager/ui/sample/findbypackage.md) | Finds a list of samples in a package based on a specific version. |

## Static Events

| Member                                                                                                               | Description                                                                                |
| -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [OnBeforeImportFinish](/engine/6000.5/script-reference/unityeditor/packagemanager/ui/sample/onbeforeimportfinish.md) | Raised after files are imported into the project, but before the Asset Database refreshes. |

## Enums

| Enum                                                                                                          | Description            |
| ------------------------------------------------------------------------------------------------------------- | ---------------------- |
| [Sample.ImportOptions](/engine/6000.5/script-reference/unityeditor/packagemanager/ui/sample/importoptions.md) | Sample import options. |
