set_material_instance_parent
Swap a material instance to a new base material without recreating it. Re-read parameters afterward because orphaned overrides and static switch defaults change.
Instructions
Re-parent a material instance onto a different base material -- how you swap an instance from a vendor master to your own without recreating it and re-pointing every referencer. Overrides whose parameter names do not exist on the new parent become orphaned and silently stop applying, so re-read with get_material_all_parameters afterwards and expect to re-check the static switches, whose defaults come from the new parent.
Returns: { material_instance_path: string, old_parent: string, new_parent: string, changed: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_parent_path | Yes | Content path of the new parent UMaterialInterface. | |
| material_instance_path | Yes | Content path to the UMaterialInstanceConstant. |