public static ShowImportPackage ( string packagePath, |
||
packagePath | string | |
items | ||
packageIconPath | string | |
return | void |
public static void ImportPackage(string packagePath, bool interactive) { if (string.IsNullOrEmpty(packagePath)) { throw new ArgumentException("Path can not be empty or null", "packagePath"); } string packageIconPath; bool canPerformReInstall; ImportPackageItem[] items = PackageUtility.ExtractAndPrepareAssetList(packagePath, out packageIconPath, out canPerformReInstall); if (items == null) { return; } if (interactive) { PackageImport.ShowImportPackage(packagePath, items, packageIconPath, canPerformReInstall); } else { string packageName = System.IO.Path.GetFileNameWithoutExtension(packagePath); PackageUtility.ImportPackageAssets(packageName, items, false); } }
public static void ImportPackage(string packagePath, bool interactive) { string str; AssetsItem[] items = AssetServer.ImportPackageStep1(packagePath, out str); if (items != null) { if (interactive) { PackageImport.ShowImportPackage(packagePath, items, str); } else { AssetServer.ImportPackageStep2(items); } } }
public static void ImportPackage(string packagePath, bool interactive) { string packageIconPath; AssetsItem[] array = AssetServer.ImportPackageStep1(packagePath, out packageIconPath); if (array == null) { return; } if (interactive) { PackageImport.ShowImportPackage(packagePath, array, packageIconPath); } else { AssetServer.ImportPackageStep2(array); } }
public static void ImportPackage(string packagePath, bool interactive) { string str; bool flag; ImportPackageItem[] items = PackageUtility.ExtractAndPrepareAssetList(packagePath, out str, out flag); if (items != null) { if (interactive) { PackageImport.ShowImportPackage(packagePath, items, str, flag); } else { PackageUtility.ImportPackageAssets(items, false); } } }
/// <summary> /// <para>Imports package at packagePath into the current project.</para> /// </summary> /// <param name="packagePath"></param> /// <param name="interactive"></param> public static void ImportPackage(string packagePath, bool interactive) { string packageIconPath; bool canPerformReInstall; ImportPackageItem[] prepareAssetList = PackageUtility.ExtractAndPrepareAssetList(packagePath, out packageIconPath, out canPerformReInstall); if (prepareAssetList == null) { return; } if (interactive) { PackageImport.ShowImportPackage(packagePath, prepareAssetList, packageIconPath, canPerformReInstall); } else { PackageUtility.ImportPackageAssets(prepareAssetList, false); } }
public static void ImportPackage(string packagePath, bool interactive) { string packageIconPath; bool allowReInstall; ImportPackageItem[] array = PackageUtility.ExtractAndPrepareAssetList(packagePath, out packageIconPath, out allowReInstall); if (array == null) { return; } if (interactive) { PackageImport.ShowImportPackage(packagePath, array, packageIconPath, allowReInstall); } else { PackageUtility.ImportPackageAssets(array, false); } }
/// <summary> /// <para>Imports package at packagePath into the current project.</para> /// </summary> /// <param name="packagePath"></param> /// <param name="interactive"></param> public static void ImportPackage(string packagePath, bool interactive) { string str; bool flag; if (string.IsNullOrEmpty(packagePath)) { throw new ArgumentException("Path can not be empty or null", "packagePath"); } ImportPackageItem[] items = PackageUtility.ExtractAndPrepareAssetList(packagePath, out str, out flag); if (items != null) { if (interactive) { PackageImport.ShowImportPackage(packagePath, items, str, flag); } else { PackageUtility.ImportPackageAssets(Path.GetFileNameWithoutExtension(packagePath), items, false); } } }
public static void ImportPackage(string packagePath, bool interactive) { if (string.IsNullOrEmpty(packagePath)) { throw new ArgumentException("Path can not be empty or null", "packagePath"); } string packageIconPath; bool allowReInstall; ImportPackageItem[] array = PackageUtility.ExtractAndPrepareAssetList(packagePath, out packageIconPath, out allowReInstall); if (array != null) { if (interactive) { PackageImport.ShowImportPackage(packagePath, array, packageIconPath, allowReInstall); } else { string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(packagePath); PackageUtility.ImportPackageAssets(fileNameWithoutExtension, array, false); } } }