Interface for package-level actions.
// Resolve IPackageActions to access package and script export functionality. const actions = this.pluginSystem.findInterface( Editor.IPackageActions.interfaceId ) as Editor.IPackageActions; if (Editor.isNull(actions)) { console.log('IPackageActions not available'); return; } console.log('IPackageActions resolved successfully'); // actions.exportPackage(descriptor, path, exportOptions) exports a native package // actions.exportScript(scriptAsset, path, exportOptions) exports a script asset Copy
// Resolve IPackageActions to access package and script export functionality. const actions = this.pluginSystem.findInterface( Editor.IPackageActions.interfaceId ) as Editor.IPackageActions; if (Editor.isNull(actions)) { console.log('IPackageActions not available'); return; } console.log('IPackageActions resolved successfully'); // actions.exportPackage(descriptor, path, exportOptions) exports a native package // actions.exportScript(scriptAsset, path, exportOptions) exports a script asset
Protected
Snap Hidden
Static
Returns the name of this object's type.
Returns true if the object is of the specified type.
Returns true if this object refers to the same instance as the given object.
Interface for package-level actions.
Example