private ImportPackageAssetsImmediately ( string packageName, |
||
packageName | string | |
items | ||
performReInstall | bool | |
return | void |
public static extern void ImportPackageAssetsImmediately(string packageName, ImportPackageItem[] items, bool performReInstall);
}
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); } }