Internal_Checkout() private method

private Internal_Checkout ( Asset assets, CheckoutMode mode ) : Task
assets Asset
mode CheckoutMode
return Task
示例#1
0
 public static Task Checkout(Asset asset, CheckoutMode mode)
 {
     return(Provider.Internal_Checkout(new Asset[]
     {
         asset
     }, mode));
 }
示例#2
0
        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));
        }
示例#3
0
        /// <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));
        }
示例#4
0
        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));
        }
示例#5
0
 /// <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));
 }
示例#6
0
 /// <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));
 }