# SearchSelection

> Creates a new SearchSelection.

## Definition

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

## SearchSelection(IList\<int>, ISearchList)

Creates a new SearchSelection.

```csharp
public SearchSelection(IList<int> selection, ISearchList filteredItems)
```

### Parameters

**** (\[IList\<int>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)): Current list of selected SearchItem indices.**** (\[ISearchList]\(/engine/6000.6/script-reference/unityeditor/search/isearchlist)): List of SearchItems displayed in Search.

## SearchSelection(IEnumerable\<SearchItem>)

Creates a new SearchSelection.

```csharp
public SearchSelection(IEnumerable<SearchItem> items)
```

### Parameters

**** (\[IEnumerable\<SearchItem>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): Filtered items.
