CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
Loading...
Searching...
No Matches

◆ Export() [1/3]

static void Export ( [NotNull] Path assetPath,
[NotNull] String packagePath,
ExportPackageOptions options = ExportPackageOptions::Default )
static

Exports the asset and its dependencies to a .unitypackage file.

Parameters
assetPathThe asset to export.
packagePathPath to file with the .unitypackage extension.
optionsExportPackageOptions
See also

Definition at line 69 of file Asset.Package.cs.

71 {
72 ThrowIf.ExtensionIsNotUnityPackage(packagePath);
73
74 AssetDatabase.ExportPackage(assetPath, packagePath, options);
75 }