# Import(ImportOptions)

> Imports the package sample into the `Assets` folder.

## Definition

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

```csharp
public bool Import(Sample.ImportOptions options = ImportOptions.None)
```

### Parameters

**** (\[ImportOptions]\(/engine/6000.0/script-reference/unityeditor/packagemanager/ui/sample/importoptions)): Custom import options. See [Sample.ImportOptions](/engine/6000.0/script-reference/unityeditor/packagemanager/ui/sample/importoptions.md) for more information. Note that [Sample.ImportOptions](/engine/6000.0/script-reference/unityeditor/packagemanager/ui/sample/importoptions.md) are flag attributes, therefore you can set multiple import options using the `|` operator.

### Returns

| Type                                                          | Description                                                        |
| ------------------------------------------------------------- | ------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the import is successful. Returns false otherwise. |
