public static void ShowImportPackage(string packagePath, ImportPackageItem[] items, string packageIconPath, bool allowReInstall) { if (!PackageImport.ValidateInput(items)) { return; } EditorWindow.GetWindow <PackageImport>(true, "Import Unity Package").Init(packagePath, items, packageIconPath, allowReInstall); }
public static void ShowImportPackage(string packagePath, AssetsItem[] items, string packageIconPath) { if (!PackageImport.ValidateInput(items)) { return; } PackageImport window = EditorWindow.GetWindow <PackageImport>(true, "Importing package"); window.Init(packagePath, items, packageIconPath); }