# ChangeSetStatus

> Retrieves a list of assets belonging to a changeset.

## Definition

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

## ChangeSetStatus(ChangeSet)

Retrieves a list of assets belonging to a changeset.

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

### Parameters

**** (\[ChangeSet]\(/engine/6000.5/script-reference/unityeditor/versioncontrol/changeset)): Changeset to query for assets.

### Returns

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

### Remarks

This is intended to work only with outgoing changesets. Use [Provider.IncomingChangeSetAssets](/engine/6000.5/script-reference/unityeditor/versioncontrol/provider/incomingchangesetassets.md) if you would like to retrieve assets from incoming changesets.

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

public class EditorScript : MonoBehaviour
{
    [MenuItem("VersionControl/ChangeSetStatus")]
    static void ExampleChangeSetStatus()
    {
        Task t = Provider.ChangeSetStatus("1111");
        t.Wait();
        t.assetList.ForEach(asset => Debug.Log(asset.name + " " + asset.state.ToString()));
    }
}
```

The code above will output a full list of the asset names as well as their version control states for the given changelist "1111".

## ChangeSetStatus(string)

Retrieves a list of assets belonging to a changeset.

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

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): ChangesetID to query for assets.

### Returns

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

### Remarks

This is intended to work only with outgoing changesets. Use [Provider.IncomingChangeSetAssets](/engine/6000.5/script-reference/unityeditor/versioncontrol/provider/incomingchangesetassets.md) if you would like to retrieve assets from incoming changesets.

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

public class EditorScript : MonoBehaviour
{
    [MenuItem("VersionControl/ChangeSetStatus")]
    static void ExampleChangeSetStatus()
    {
        Task t = Provider.ChangeSetStatus("1111");
        t.Wait();
        t.assetList.ForEach(asset => Debug.Log(asset.name + " " + asset.state.ToString()));
    }
}
```

The code above will output a full list of the asset names as well as their version control states for the given changelist "1111".
