remove_bt_service
Remove a background tick service from an Unreal Engine BehaviorTree composite by name or index, with idempotent missing-entry handling.
Instructions
Remove a service (background tick) from a BehaviorTree composite. Inverse of add_bt_service: drops the matching entry from the composite's Services array (UBTCompositeNode::Services). Idempotent: a missing service returns removed:false / already_absent:true.
Returns: { behavior_tree_path: string, parent_name: string, service_name: string, removed: bool, already_absent: bool, service_count: int, saved: bool, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Alternative to service_name: 0-based position in the composite's Services array. | |
| parent_name | No | Optional composite name the service is attached to; "Root" or omitted targets the RootNode. | |
| service_name | No | Name of the service to remove (a service_name from a prior add_bt_service); provide this or 'index'. | |
| behavior_tree_path | Yes | Path to the UBehaviorTree asset. |