add_ik_goal
Attach an IK goal to a bone in an Unreal IK Rig and save the asset; returns the existing goal if already present.
Instructions
Add an IK goal to an IK Rig, associated with a bone, through the IK Rig controller (one undo transaction), then save the asset. If bone_name is omitted, a leaf bone of the rig's skeletal mesh is picked automatically. Idempotent: a goal of that name on the same bone is not re-created but returned with already_exists=true, saved=false and a note, and nothing is saved. A failed save makes success false, with saved=false and save_error.
Returns: { asset_path: string, goal_name: string, bone_name: string, goal_count: int, saved: bool, already_exists?: bool, save_error?: string, note?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bone_name | No | Optional bone name to attach the goal to | |
| goal_name | Yes | Unique name for the new goal | |
| ik_rig_path | Yes | Path to the UIKRigDefinition asset |