IsAllFilePathsValid() private static method

private static IsAllFilePathsValid ( AssetsItem assetItems, string &errorMessage ) : bool
assetItems AssetsItem
errorMessage string
return bool
Beispiel #1
0
        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);
        }