# SelectMultipleItems(IEnumerable<SearchItem>, bool, bool)

> Select and ping multiple objects in the Project Browser.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
public static void SelectMultipleItems(IEnumerable<SearchItem> items, bool focusProjectBrowser = false, bool pingSelection = true)
```

### Parameters

**** (\[IEnumerable\<SearchItem>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): Search Items to select and ping.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, will focus the project browser before pinging the objects.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, will ping the selected objects.

### Examples

```csharp
private static void DeleteAssets(IEnumerable<SearchItem> items)
{
    var oldSelection = Selection.objects;
    SearchUtils.SelectMultipleItems(items, pingSelection: false);
    // We call ProjectBrowser.DeleteSelectedAssets for the confirmation popup.
    ProjectBrowser.DeleteSelectedAssets(true);
    Selection.objects = oldSelection;
}
```
