duplicate_mpc
Copy an Unreal Engine Material Parameter Collection asset, including parameter names, IDs, and defaults, to a new name and folder, then save it. It rejects an existing target path.
Instructions
Duplicate a Material Parameter Collection asset, parameters included with their names, Ids and defaults, to package_path/new_name and save the copy. Refuses when the target already exists. Returns collection_path, scalar_count, vector_count, saved and save_error.
Returns: { source_path: string, collection_path: string, asset_path: string, name: string, package_path: string, scalar_count: int, vector_count: int, duplicated: bool, saved: bool, save_error: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_name | Yes | Asset name of the copy, e.g. "MPC_B"; must not be empty | |
| source_path | Yes | Source MPC path, e.g. "/Game/MPC/MPC_A" or the object path "/Game/MPC/MPC_A.MPC_A" | |
| package_path | No | Target folder; default is the folder of source_path when it is an object path with a dot ("/Game/MPC/MPC_A.MPC_A"), else "/Game/MaterialCollections" |