get_condition_info
Retrieve a StateTree condition node as JSON to inspect its class, instance ID, and properties without modifying the asset. Supports state enter conditions and transition conditions.
Instructions
Dump one condition node of a StateTree state as JSON without changing the asset: an enter condition of the state or, with target_kind "transition", a condition of one of its transitions. Returns class, instance_id and properties, the node struct fields (instance data is not included).
Returns: { tree_path, state_name, target_kind, transition_index, condition_index, class, instance_id, properties: {...} }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_path | Yes | Asset path of the StateTree, e.g. "/Game/AI/ST_Guard". | |
| state_name | Yes | Name of the state that owns the condition; the command fails without it. | |
| target_kind | No | Which list to read: "state" (default, the state EnterConditions) or "transition" (the Conditions of transition transition_index); any other value reads the enter conditions. | |
| condition_index | Yes | 0-based index into the selected condition list, as counted by list_conditions or list_transitions. | |
| transition_index | No | 0-based index into the state transitions; required when target_kind is "transition" and ignored otherwise. |