consolidate_assets
Redirect references from compatible source assets to a target asset, delete sources with redirectors, and save changes; preview with dry run.
Instructions
Redirect every reference to the source assets onto the target with UEditorAssetSubsystem::ConsolidateAssets, which DELETES the sources (leaving redirectors) and saves what it changed. Only class-compatible sources are used; others are listed in skipped_incompatible and unloadable ones are dropped silently. dry_run=true only reports.
Returns: dry_run=true: { target_asset_path, target_class, dry_run: true, would_consolidate: [string], skipped_incompatible: [{path,class}], compatible_count: int, incompatible_count: int }; dry_run=false (default): { target_asset_path, target_class, dry_run: false, consolidated_count: int, source_count: int, success: bool, skipped_incompatible: [{path,class}], incompatible_count: int }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, skip ConsolidateAssets entirely and only report what would happen, default false | |
| target_asset_path | Yes | The asset to keep, all references point here | |
| source_asset_paths | Yes | Assets to consolidate into the target |