Apply Prefab Overrides
unity_apply_prefabApply a prefab instance's overrides back to its source prefab, affecting all instances upon save. Provide the instance's hierarchy path; fails if not a prefab instance.
Instructions
Apply an instance's overrides back to its prefab source (Undo-able, but affects all instances once saved).
Args: object_path of the instance ('Level/Enemy_1'). Fails with hint if the object is not a prefab instance.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"object_path": "<object_path>"
},
"name": "unity_apply_prefab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_path | Yes | Hierarchy path of the prefab instance, e.g. 'Level/Enemy_1' |