Version: 2023.2
언어: 한국어

Provider.ChangeSetStatus

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

파라미터

changeset Changeset to query for assets.
changesetID ChangesetID to query for assets.

설명

Retrieves a list of assets belonging to a changeset.

This is intended to work only with outgoing changesets. Use Provider.IncomingChangeSetAssets if you would like to retrieve assets from incoming changesets.

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

public class EditorScript : MonoBehaviour { [MenuItem("VersionControl/ChangeSetStatus")] static void ExampleChangeSetStatus() { Task t = Provider.ChangeSetStatus("1111"); t.Wait(); t.assetList.ForEach(asset => Debug.Log(asset.name + " " + asset.state.ToString())); } }

The code above will output a full list of the asset names as well as their version control states for the given changelist "1111".

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961