remove_bt_task_child
Remove a leaf task child (Wait/MoveTo) from an Unreal BehaviorTree composite by name or index; this drops the matching edge from the parent's Children array and reports already-absent cases.
Instructions
Remove a leaf task node (Wait/MoveTo/...) from a BehaviorTree composite. Inverse of add_bt_task_child: drops the matching entry from the parent's Children array. Only task child-edges are considered, so a composite with the same name is untouched. Idempotent: a missing child returns removed:false / already_absent:true.
Returns: { behavior_tree_path: string, parent_name: string, child_name: string, child_kind: string, removed: bool, already_absent: bool, child_count: int, saved: bool, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Alternative to child_name: 0-based position in the parent's Children array (the edge at that index must be a task). | |
| child_name | No | Name of the task child to remove (a child_name from a prior add_bt_task_child); provide this or 'index'. | |
| parent_name | No | Optional parent composite name owning the child; "Root" or omitted targets the RootNode. | |
| behavior_tree_path | Yes | Path to the UBehaviorTree asset. |