add_state_task
Attach a task node to a state's Tasks list in a UStateTree by resolving its struct name via reflection, then save the asset.
Instructions
Attach a task node (by struct name, resolved via reflection) to a state's Tasks list on a UStateTree.
Returns: { tree_path, state_name, task_struct, task_count, added, saved }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_path | Yes | Asset path to the UStateTree | |
| state_name | Yes | Name of the state to add the task to | |
| task_struct | Yes | Task struct name or /Script path; must derive from StateTreeTaskBase (e.g. "StateTreeDebugTextTask") |