# AssetIndexChangeSet

> Create a search asset index changeset.

## Definition

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

## AssetIndexChangeSet(string\[], string\[])

Create a search asset index changeset.

```csharp
public AssetIndexChangeSet(string[] updated, string[] removed)
```

### Parameters

**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Assets that were updated.**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): Assets that were deleted.

## AssetIndexChangeSet(IEnumerable\<string>, IEnumerable\<string>, IEnumerable\<string>, Func\<string, bool>)

Create a search asset index changeset.

```csharp
public AssetIndexChangeSet(IEnumerable<string> updated, IEnumerable<string> removed, IEnumerable<string> moved, Func<string, bool> predicate)
```

### Parameters

**** (\[IEnumerable\<string>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): Assets that were updated.**** (\[IEnumerable\<string>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): Assets that were deleted.**** (\[IEnumerable\<string>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): Existing assets that were moved.**** (\[Func\<string, bool>]\(https\://learn.microsoft.com/dotnet/api/system.func-1)): Predicate used to exclude any updated, removed or moved assets from the change set.

## AssetIndexChangeSet(IEnumerable\<string>, IEnumerable\<string>, Func\<string, bool>)

Create a search asset index changeset.

```csharp
public AssetIndexChangeSet(IEnumerable<string> updated, IEnumerable<string> removed, Func<string, bool> predicate)
```

### Parameters

**** (\[IEnumerable\<string>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): Assets that were updated.**** (\[IEnumerable\<string>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): Assets that were deleted.**** (\[Func\<string, bool>]\(https\://learn.microsoft.com/dotnet/api/system.func-1)): Predicate used to exclude any updated, removed or moved assets from the change set.
