add_transition_condition
Attach a reflection-based condition to a UStateTree transition using its struct name, tree path, state, and transition index; saves the updated tree.
Instructions
Attach a condition node (by struct name, via reflection) to a transition on a state of a UStateTree.
Returns: { tree_path, state_name, transition_index, condition_struct, condition_count, added, saved }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_path | Yes | Asset path to the UStateTree | |
| state_name | Yes | Name of the state owning the transition | |
| condition_struct | Yes | Condition struct name or /Script path; must derive from StateTreeConditionBase (e.g. "StateTreeRandomCondition") | |
| transition_index | No | Index of the transition within the state (from get_state_tree_info) |