ValidateInput() private static method

private static ValidateInput ( AssetsItem items ) : bool
items AssetsItem
return bool
コード例 #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);
 }
コード例 #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);
        }