private static ValidateInput ( |
||
items | ||
return | bool |
private static bool ValidateInput(AssetsItem[] items)
{
string str;
if (!IsAllFilePathsValid(items, out str))
{
str = str + "\nDo you want to import the valid file paths of the package or cancel importing?";
return EditorUtility.DisplayDialog("Invalid file path found", str, "Import", "Cancel importing");
}
return true;
}
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); }