public static Task Checkout(Asset asset, CheckoutMode mode) { return(Provider.Internal_Checkout(new Asset[] { asset }, mode)); }
public static Task Checkout(UnityEngine.Object asset, CheckoutMode mode) { string assetPath = AssetDatabase.GetAssetPath(asset); Asset assetByPath = Provider.GetAssetByPath(assetPath); return(Provider.Internal_Checkout(new Asset[] { assetByPath }, mode)); }
/// <summary> /// <para>Checkout an asset or list of asset from the version control system.</para> /// </summary> /// <param name="assets">List of assets to checkout.</param> /// <param name="mode">Tell the Provider to checkout the asset, the .meta file or both.</param> /// <param name="asset">Asset to checkout.</param> public static Task Checkout(Object[] assets, CheckoutMode mode) { AssetList assetList = new AssetList(); foreach (Object asset in assets) { Asset assetByPath = Provider.GetAssetByPath(AssetDatabase.GetAssetPath(asset)); assetList.Add(assetByPath); } return(Provider.Internal_Checkout(assetList.ToArray(), mode)); }
public static Task Checkout(UnityEngine.Object[] assets, CheckoutMode mode) { AssetList assetList = new AssetList(); for (int i = 0; i < assets.Length; i++) { UnityEngine.Object assetObject = assets[i]; string assetPath = AssetDatabase.GetAssetPath(assetObject); Asset assetByPath = Provider.GetAssetByPath(assetPath); assetList.Add(assetByPath); } return(Provider.Internal_Checkout(assetList.ToArray(), mode)); }
/// <summary> /// <para>Checkout an asset or list of asset from the version control system.</para> /// </summary> /// <param name="assets">List of assets to checkout.</param> /// <param name="mode">Tell the Provider to checkout the asset, the .meta file or both.</param> /// <param name="asset">Asset to checkout.</param> public static Task Checkout(Object asset, CheckoutMode mode) { return(Provider.Internal_Checkout(new Asset[1] { Provider.GetAssetByPath(AssetDatabase.GetAssetPath(asset)) }, mode)); }
/// <summary> /// <para>Checkout an asset or list of asset from the version control system.</para> /// </summary> /// <param name="assets">List of assets to checkout.</param> /// <param name="mode">Tell the Provider to checkout the asset, the .meta file or both.</param> /// <param name="asset">Asset to checkout.</param> public static Task Checkout(AssetList assets, CheckoutMode mode) { return(Provider.Internal_Checkout(assets.ToArray(), mode)); }