CodeSmile AssetDatabase 1.10
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,
String ownerOrgId = null )
static

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

Parameters
assetPathThe asset to export.
packagePathPath to file with the .unitypackage extension.
optionsExportPackageOptions
ownerOrgIdThe organization ID Unity associates with the exported package as its signing organization. The Organization ID is in the Unity Cloud dashboard under Administration => Settings. Available in Unity 6000.6 and newer. Leaving it null exports exactly as before.
See also

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

96 {
97 ThrowIf.ExtensionIsNotUnityPackage(packagePath);
98
99 UnityEditor.AssetPackage.Package.Export(new ExportPackageParameters(
100 assetPathName: assetPath, fileName: packagePath, ownerOrgId: ownerOrgId, flags: options));
101 }