# FindByPackage(string, string)

> Finds a list of samples in a package based on a specific version.

## Definition

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

```csharp
public static IEnumerable<Sample> FindByPackage(string packageName, string packageVersion)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the package.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The version of the package.

### Returns

| Type                                                                                                    | Description                                                                      |
| ------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| [IEnumerable\<Sample>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) | Returns a list of found samples. Returns an empty list if no samples were found. |
