ImportPackageAssetsImmediately() private méthode

private ImportPackageAssetsImmediately ( string packageName, ImportPackageItem items, bool performReInstall ) : void
packageName string
items ImportPackageItem
performReInstall bool
Résultat void
Exemple #1
0
        internal static void ImportPackageImmediately(string packagePath)
        {
            string str;
            bool   flag;

            if (string.IsNullOrEmpty(packagePath))
            {
                throw new ArgumentException("Path can not be empty or null", "packagePath");
            }
            ImportPackageItem[] items = PackageUtility.ExtractAndPrepareAssetList(packagePath, out str, out flag);
            if ((items != null) && (items.Length != 0))
            {
                PackageUtility.ImportPackageAssetsImmediately(Path.GetFileNameWithoutExtension(packagePath), items, false);
            }
        }
Exemple #2
0
        internal static void ImportPackageImmediately(string packagePath)
        {
            if (string.IsNullOrEmpty(packagePath))
            {
                throw new ArgumentException("Path can not be empty or null", "packagePath");
            }
            string text;
            bool   flag;

            ImportPackageItem[] array = PackageUtility.ExtractAndPrepareAssetList(packagePath, out text, out flag);
            if (array != null && array.Length != 0)
            {
                string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(packagePath);
                PackageUtility.ImportPackageAssetsImmediately(fileNameWithoutExtension, array, false);
            }
        }
Exemple #3
0
        internal static void ImportPackageImmediately(string packagePath)
        {
            if (string.IsNullOrEmpty(packagePath))
            {
                throw new ArgumentException("Path can not be empty or null", "packagePath");
            }
            string text;
            bool   flag;

            ImportPackageItem[] array = PackageUtility.ExtractAndPrepareAssetList(packagePath, out text, out flag);
            if (array == null || array.Length == 0)
            {
                return;
            }
            PackageUtility.ImportPackageAssetsImmediately(array, false);
        }
        internal static void ImportPackageImmediately(string packagePath)
        {
            if (string.IsNullOrEmpty(packagePath))
            {
                throw new ArgumentException("Path can not be empty or null", "packagePath");
            }

            string packageIconPath;
            bool   canPerformReInstall;

            ImportPackageItem[] items = PackageUtility.ExtractAndPrepareAssetList(packagePath, out packageIconPath, out canPerformReInstall);

            if (items == null || items.Length == 0)
            {
                return;
            }

            string packageName = System.IO.Path.GetFileNameWithoutExtension(packagePath);

            PackageUtility.ImportPackageAssetsImmediately(packageName, items, false);
        }