private static bool ValidateInput(ImportPackageItem[] items) { string errorMessage; if (!PackageImport.IsAllFilePathsValid(items, out errorMessage)) { return(EditorUtility.DisplayDialog("Invalid file path found", errorMessage + "\nDo you want to import the valid file paths of the package or cancel importing?", "Import", "Cancel importing")); } return(true); }
private static bool ValidateInput(AssetsItem[] items) { string text; if (!PackageImport.IsAllFilePathsValid(items, out text)) { text += "\nDo you want to import the valid file paths of the package or cancel importing?"; return(EditorUtility.DisplayDialog("Invalid file path found", text, "Import", "Cancel importing")); } return(true); }