private ImportPackageAssetsImmediately ( string packageName, |
||
packageName | string | |
items | ||
performReInstall | bool | |
return | void |
internal static void ImportPackageImmediately(string packagePath) { 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) && (items.Length != 0)) { PackageUtility.ImportPackageAssetsImmediately(Path.GetFileNameWithoutExtension(packagePath), items, false); } }
internal static void ImportPackageImmediately(string packagePath) { if (string.IsNullOrEmpty(packagePath)) { throw new ArgumentException("Path can not be empty or null", "packagePath"); } string text; bool flag; ImportPackageItem[] array = PackageUtility.ExtractAndPrepareAssetList(packagePath, out text, out flag); if (array != null && array.Length != 0) { string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(packagePath); PackageUtility.ImportPackageAssetsImmediately(fileNameWithoutExtension, array, false); } }
internal static void ImportPackageImmediately(string packagePath) { if (string.IsNullOrEmpty(packagePath)) { throw new ArgumentException("Path can not be empty or null", "packagePath"); } string text; bool flag; ImportPackageItem[] array = PackageUtility.ExtractAndPrepareAssetList(packagePath, out text, out flag); if (array == null || array.Length == 0) { return; } PackageUtility.ImportPackageAssetsImmediately(array, false); }
internal static void ImportPackageImmediately(string packagePath) { 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 || items.Length == 0) { return; } string packageName = System.IO.Path.GetFileNameWithoutExtension(packagePath); PackageUtility.ImportPackageAssetsImmediately(packageName, items, false); }