AssetDatabase.ExportPackage
static function ExportPackage(assetPathName: string, fileName: string): void;
static void ExportPackage(string assetPathName, string fileName);
static def ExportPackage(assetPathName as string, fileName as string) as void
static function ExportPackage(assetPathName: string, fileName: string, flags: ExportPackageOptions): void;
static void ExportPackage(string assetPathName, string fileName, ExportPackageOptions flags);
static def ExportPackage(assetPathName as string, fileName as string, flags as ExportPackageOptions) as void
static function ExportPackage(assetPathNames: string[], fileName: string, flags: ExportPackageOptions = ExportPackageOptions.Default): void;
static void ExportPackage(string[] assetPathNames, string fileName, ExportPackageOptions flags = ExportPackageOptions.Default);
static def ExportPackage(assetPathNames as string[], fileName as string, flags as ExportPackageOptions = ExportPackageOptions.Default) as void
Description

Exports the assets identified by assetPathNames to a unitypackage file in fileName.

See Also: ExportPackageOptions for information on how you can affect what gets exported.