set_task_property
Updates one property on a StateTree task instance by asset path, state, task index, and JSON value; returns set, value_changed, and saved.
Instructions
Set a single field of a task instance by reflection (FJsonObjectConverter::JsonValueToFProperty). Idempotent — re-applying the same value is a no-op (returns set:true, value_changed:false).
Returns: { tree_path, state_name, task_index, property, set, value_changed, saved }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | JSON value to apply (any FJsonObjectConverter-supported type). | |
| property | Yes | FProperty name on the task struct. | |
| tree_path | Yes | Asset path to the UStateTree. | |
| state_name | Yes | Name of the state. | |
| task_index | Yes | 0-based index into State->Tasks. |