add_state_tree_binding
Bind a UStateTree root parameter to a state or global node input property so the node reads it at runtime; choose task, condition, consideration, evaluator, or global task targets.
Instructions
Bind a UStateTree root parameter (source) to a target node's input property (target), so the node reads the parameter at runtime. The target defaults to a state Task, but target_kind selects any FStateTreeEditorNode list: enter_condition/consideration (on the state) or global_task/evaluator (on the tree) — the binding anchor (FStateTreeEditorNode::ID) is identical for every kind. Authors an FStateTreePropertyPathBinding in the editor data's property bindings (idempotent per target path — re-binding the same target replaces it); validate it resolves with compile_state_tree.
Returns: { tree_path: string, state_name: string?, target_kind: string, target_index: int, target_property: string, source_parameter: string, source_struct_id: string, target_struct_id: string, bound: bool, binding_count: int, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_path | Yes | Asset path to the UStateTree. | |
| state_name | No | Name of the state owning the target node (required for target_kind task|enter_condition|consideration; ignored for global_task|evaluator, which live on the tree). | |
| target_kind | No | Which node list holds the target: "task" (default) | "enter_condition" | "consideration" | "global_task" | "evaluator". | |
| target_index | No | Optional index into the selected node list (default 0). | |
| target_property | Yes | Name of the target node's input property to bind (the binding target), e.g. "BindableText". | |
| source_parameter | Yes | Name of the root parameter to bind from (the binding source; add it with add_tree_parameter first). |