# AddColumns(IEnumerable<SearchColumn>, int)

> Invoked when a set of columns are inserted.

## Definition

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

```csharp
void AddColumns(IEnumerable<SearchColumn> descriptors, int activeColumnIndex)
```

### Parameters

**** (\[IEnumerable\<SearchColumn>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): Inserted columns.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Column index where the columns should be inserted.
