Version: 2022.2
언어: 한국어
public static VersionControl.Task ChangeSets ();

설명

Gets a list of pending changesets owned by the current user.

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.