set_state_linked_asset
Convert a UStateTree state into a LinkedAsset state that points to another UStateTree, so it runs the target tree instead of local tasks.
Instructions
Turn a state into a LinkedAsset state pointing at another UStateTree (UStateTreeState::SetLinkedStateAsset). This forces the state's Type to EStateTreeStateType::LinkedAsset (the engine setter asserts on Type) and the setter clears Tasks, fixes the parameter layout from the linked subtree, and sets SelectionBehavior=TryEnterState — so a linked-asset state runs the target tree instead of local tasks.
Returns: { tree_path, state_name, state_type, linked_asset, set, saved }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_path | Yes | Asset path to the owning UStateTree. | |
| state_name | Yes | Name of the state to convert into a LinkedAsset state. | |
| linked_asset_path | Yes | Asset path to the target UStateTree to link (must exist). |