migrate_assets
Copy Unreal assets and their dependencies into another project's Content folder, skipping existing files and optionally ignoring dependencies.
Instructions
Copy assets, and their dependencies unless ignore_dependencies, into another project's Content folder with IAssetTools::MigratePackages, with no prompt and skipping files that already exist there. The engine first saves every dirty package of this editor, and migrates nothing if one of them fails to save. What was copied is measured from the migration's own package list against the disk: migrated lists each package written (dependencies included), skipped_existing the requested ones the destination already had, failed the requested ones neither written nor skipped. Succeeds when nothing requested failed. destination_path must be a Content folder with a .uproject (or one .uplugin) next to it, or the engine migrates nothing and the call fails.
Returns: { migrated_count: int, failed_count: int, requested_count: int, destination_path: string, ignore_dependencies: bool, migrated: [{ package: string, file: string }], skipped_existing: [string], failed: [string], note: string? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_paths | Yes | Asset object or package paths to migrate (e.g. ["/Game/Props/SM_Crate"]); each is reduced to its package name. | |
| destination_path | Yes | Target content folder, e.g. D:/OtherProject/Content | |
| ignore_dependencies | No | When true only the listed packages are copied, without their dependencies (default false). |