Version: 2021.1
언어: 한국어

Provider.IncomingChangeSetAssets

매뉴얼로 전환
public static VersionControl.Task IncomingChangeSetAssets (VersionControl.ChangeSet changeset);
public static VersionControl.Task IncomingChangeSetAssets (string changesetID);

파라미터

changeset Incoming changeset.
changesetID Incoming changesetid.

설명

Given an incoming changeset this will start a task to query the version control server for which assets are part of the changeset.

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

public class EditorScript : MonoBehaviour { [MenuItem("Version Control/ChangeSetAssets")] public static void ExampleChangeSetAssets() { Task t1 = Provider.IncomingChangeSetAssets("1111"); t1.Wait(); t1.assetList.ForEach(asset => Debug.Log(asset.name + " " + asset.state.ToString())); } }

The code above will return the names and version control states for the assets belonging to the "1111" incoming changeset.