# SubmitIsValid(ChangeSet, AssetList)

> Returns true if submitting the assets is a valid operation.

## Definition

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

```csharp
public static bool SubmitIsValid(ChangeSet changeset, AssetList assets)
```

### Parameters

**** (\[ChangeSet]\(/engine/6000.6/script-reference/unityeditor/versioncontrol/changeset)): The changeset to submit.**** (\[AssetList]\(/engine/6000.6/script-reference/unityeditor/versioncontrol/assetlist)): The asset to submit.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

Do note that the task will always return true if the changeset parameter is set to an existing changeset.

### Examples

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

public class EditorScript : MonoBehaviour
{
    [MenuItem("Version Control/SubmitIsValid")]
    public static void ExampleSubmitIsValid()
    {
        AssetList assets = new AssetList();
        assets.Add(Provider.GetAssetByPath("Assets/ExampleAsset.cs"));
        Debug.Log(Provider.SubmitIsValid(null, assets));
    }
}
```
