add_state_tree_global_task_property
Set a property value on an existing global task within a StateTree asset and save it. Only node struct properties are reachable, not instance data.
Instructions
Write one property of an existing global task of a StateTree asset by reflection and save the asset; despite the name it adds nothing (create the task with add_state_tree_global_task). Only node struct properties are reachable, not instance data. Returns value_changed, new_value and saved.
Returns: { tree_path, global_task_index, property, set, value_changed, saved }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | New value as JSON: a number, bool or string, or an object for a struct property, applied through FJsonObjectConverter. | |
| property | Yes | Name of a property on the global task node struct, e.g. "FontScale" on a debug text task; case-insensitive. | |
| tree_path | Yes | Asset path of the StateTree, e.g. "/Game/AI/ST_Guard". | |
| global_task_index | Yes | 0-based index into the tree GlobalTasks, as listed by list_global_tasks; out of range is an error. |