ChangeSets()
Gets a list of pending changesets owned by the current user.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEditor.VersionControl
- Assembly: UnityEditor.CoreModule
public static Task ChangeSets()
Returns
Type | Description |
|---|---|
| Task |
Remarks
using System.Collections.Generic;using UnityEditor;using UnityEditor.VersionControl;using UnityEngine;public class EditorScript : MonoBehaviour{ [MenuItem("Version Control/Changesets")] static void ExampleChangeSets() { Task t = Provider.ChangeSets(); t.Wait(); t.changeSets.ForEach(changeset => Debug.Log(changeset.id + " : " + changeset.description)); }}
The code above will output all of the currently active changesets to the console.