Documentation

Unity Engine

Download Unity

Unity Engine

IncomingChangeSetAssets

Starts a task that queries the version control server for the assets in an incoming changeset.
Read time 1 minuteLast updated 12 days ago

Definition

IncomingChangeSetAssets(ChangeSet)

Starts a task that queries the version control server for the assets in an incoming changeset.
public static Task IncomingChangeSetAssets(ChangeSet changeset)

Parameters

changeset

The incoming changeset to query.

Returns

Type

Description

TaskThe task that queries the assets in the incoming changeset.

Remarks

Use this method to find out which assets an incoming changeset changes before you get the latest version. When the task completes, its Task.assetList contains the assets.

IncomingChangeSetAssets(string)

Starts a task that queries the version control server for the assets in the incoming changeset with a specified ID.
public static Task IncomingChangeSetAssets(string changesetID)

Parameters

changesetID

The ID of the incoming changeset to query.

Returns

Type

Description

TaskThe task that queries the assets in the incoming changeset.

Remarks

Use this method to find out which assets an incoming changeset changes before you get the latest version. When the task completes, its Task.assetList contains the assets.
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())); }}
This example logs the name and version control state of each asset in the incoming changeset with the ID
1111
.