add_virtual_bone
Create a virtual bone in a USkeleton asset by linking a source bone to a target bone and saving. Returns the virtual bone name and count.
Instructions
Add a virtual bone from a source bone to a target bone of a USkeleton asset, named "VB _" by the engine, then save. Bone names are not checked against the skeleton; an existing pair returns that bone with already_exists true. Returns virtual_bone_name and virtual_bone_count.
Returns: { asset_path: string, virtual_bone_name: string, source_bone: string, target_bone: string, virtual_bone_count: int, saved: bool, already_exists: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_bone | No | Bone the virtual bone starts from (default the first bone, usually the root); not validated. | |
| target_bone | No | Bone the virtual bone points to (default the first bone that differs from source_bone); not validated. | |
| skeleton_path | Yes | USkeleton asset path, e.g. "/Game/Characters/SK_Hero_Skeleton". |