ImportPackageAssetsImmediately() private method

private ImportPackageAssetsImmediately ( string packageName, ImportPackageItem items, bool performReInstall ) : void
packageName string
items ImportPackageItem
performReInstall bool
return void
示例#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);
            }
        }
示例#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);
            }
        }
示例#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);
        }