ValidateInput() private static method

private static ValidateInput ( AssetsItem items ) : bool
items AssetsItem
return bool
Example #1
0
 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);
 }
Example #2
0
        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);
        }