UnityEditor.PackageUtility.ImportPackageAssetsImmediately C# (CSharp) Method

ImportPackageAssetsImmediately() private method

private ImportPackageAssetsImmediately ( string packageName, ImportPackageItem items, bool performReInstall ) : void
packageName string
items ImportPackageItem
performReInstall bool
return void
        public static extern void ImportPackageAssetsImmediately(string packageName, ImportPackageItem[] items, bool performReInstall);
    }

Usage Example

Exemplo n.º 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);
            }
        }
All Usage Examples Of UnityEditor.PackageUtility::ImportPackageAssetsImmediately