AssetDatabase.ExportPackage Manual     Reference     Scripting  
Scripting > Editor Classes > AssetDatabase
AssetDatabase.ExportPackage

static function ExportPackage (assetPathName : String, fileName : String) : void

static function ExportPackage (assetPathName : String, fileName : String, flags : ExportPackageOptions) : void

static function ExportPackage (assetPathNames : string[], fileName : String, flags : ExportPackageOptions = ExportPackageOptions.Default) : 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