SubmitIsValid(ChangeSet, AssetList)
Returns true if submitting the assets is a valid operation.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEditor.VersionControl
- Assembly: UnityEditor.CoreModule
public static bool SubmitIsValid(ChangeSet changeset, AssetList assets)
Parameters
Returns
Type | Description |
|---|---|
| bool |
Remarks
Do note that the task will always return true if the changeset parameter is set to an existing changeset.
Examples
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)); }}