get_task_info
Read a task's class, instance ID, and properties from a named state in a StateTree asset without changes. Use list_tasks to find task indices.
Instructions
Read one task of a named state in a StateTree asset without changing it: the task node's struct name (class), its instance_id and every property of the node struct as JSON (properties). The task's instance data is not included. Errors when the tree, its editor data or the state is missing, or task_index is out of range; state_name picks the first state with that name. List a state's tasks with list_tasks; read or write one field with get_task_property or set_task_property; global tasks: list_global_tasks.
Returns: { tree_path, state_name, task_index, class, instance_id, properties: {...} }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_path | Yes | Asset path to the UStateTree. | |
| state_name | Yes | Name of the state. | |
| task_index | Yes | 0-based index into State->Tasks. |