remove_bt_decorator
Remove a decorator from a BehaviorTree child edge to undo a prior addition and drop the matching entry from the Decorators array.
Instructions
Remove a decorator (execution condition) from a specific child-edge of a BehaviorTree composite. Inverse of add_bt_decorator: drops the matching entry from that child's Decorators array (FBTCompositeChild::Decorators). Idempotent: a missing decorator returns removed:false / already_absent:true.
Returns: { behavior_tree_path: string, parent_name: string, child_name: string, decorator_name: string, removed: bool, already_absent: bool, decorator_count: int, saved: bool, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Alternative to decorator_name: 0-based position in the child-edge's Decorators array. | |
| child_name | Yes | Name of the existing child (a child_name from a prior add) whose edge the decorator gates. | |
| parent_name | No | Optional parent composite name owning the child-edge; "Root" or omitted targets the RootNode. | |
| decorator_name | No | Name of the decorator to remove (a decorator_name from a prior add_bt_decorator); provide this or 'index'. | |
| behavior_tree_path | Yes | Path to the UBehaviorTree asset. |