get_statetree_transition_targets
Retrieve all valid transition targets for a StateTree asset, including states and built-in meta targets, to use when setting up transitions.
Instructions
Get all valid transition targets for a StateTree.
Returns two lists:
'states': All states with name, GUID, index_path, and type (for GotoState transitions)
'meta_targets': Built-in targets (None, TreeSucceeded, TreeFailed, TreeStopped, NextSibling, NextState, NextSelectableState)
Use this before add_statetree_transition or set_statetree_transition_property to discover valid target_state values.
Args: asset_path: Content path to the StateTree asset
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |