Version: 2023.1
언어: 한국어
public static bool LockIsValid (VersionControl.AssetList assets);

파라미터

assets List of assets to test.

설명

Returns true if the Provider.Lock task can be executed on one or more assets from the given asset list.

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

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