# IncomingChangeSetAssets

> Given an incoming changeset this will start a task to query the version control server for which assets are part of the changeset.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.VersionControl](/engine/6000.5/script-reference/unityeditor/versioncontrol.md)
* **Assembly:** UnityEditor.CoreModule

## IncomingChangeSetAssets(ChangeSet)

Given an incoming changeset this will start a task to query the version control server for which assets are part of the changeset.

```csharp
public static Task IncomingChangeSetAssets(ChangeSet changeset)
```

### Parameters

**** (\[ChangeSet]\(/engine/6000.5/script-reference/unityeditor/versioncontrol/changeset)): Incoming changeset.

### Returns

| Type                                                                       | Description |
| -------------------------------------------------------------------------- | ----------- |
| [Task](/engine/6000.5/script-reference/unityeditor/versioncontrol/task.md) |             |

### Remarks

```csharp
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.VersionControl;
using UnityEngine;

public class EditorScript : MonoBehaviour
{
    [MenuItem("Version Control/ChangeSetAssets")]
    public static void ExampleChangeSetAssets()
    {
        Task t1 = Provider.IncomingChangeSetAssets("1111");
        t1.Wait();
        t1.assetList.ForEach(asset => Debug.Log(asset.name + " " + asset.state.ToString()));
    }
}
```

The code above will return the names and version control states for the assets belonging to the "1111" incoming changeset.

## IncomingChangeSetAssets(string)

Given an incoming changeset this will start a task to query the version control server for which assets are part of the changeset.

```csharp
public static Task IncomingChangeSetAssets(string changesetID)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Incoming changesetid.

### Returns

| Type                                                                       | Description |
| -------------------------------------------------------------------------- | ----------- |
| [Task](/engine/6000.5/script-reference/unityeditor/versioncontrol/task.md) |             |

### Remarks

```csharp
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.VersionControl;
using UnityEngine;

public class EditorScript : MonoBehaviour
{
    [MenuItem("Version Control/ChangeSetAssets")]
    public static void ExampleChangeSetAssets()
    {
        Task t1 = Provider.IncomingChangeSetAssets("1111");
        t1.Wait();
        t1.assetList.ForEach(asset => Debug.Log(asset.name + " " + asset.state.ToString()));
    }
}
```

The code above will return the names and version control states for the assets belonging to the "1111" incoming changeset.
