Version: 2022.2
언어: 한국어
public static bool UnlockIsValid (VersionControl.AssetList assets);
public static bool UnlockIsValid (VersionControl.Asset asset);

파라미터

assets The asset list to test.
asset The asset to test.

설명

Returns true if unlocking the assets is a valid operation.

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

public class EditorScript : MonoBehaviour { [MenuItem("Version Control/UnlockIsValid")] public static void ExampleUnlockIsValid() { AssetList assets = new AssetList(); assets.Add(Provider.GetAssetByPath("Assets/ExampleAsset.cs")); Debug.Log(Provider.UnlockIsValid(assets)); } }