add_anim_transition
Create a source-to-target transition in an animation state machine, with optional crossfade, blend mode, bidirectional link, and priority.
Instructions
Create a source->target transition in an anim state machine.
Returns: { anim_blueprint_path: string, machine_name: string, source_state: string, target_state: string, transition_created: bool, already_existed: bool, crossfade_duration: number, blend_mode: string, bidirectional: bool, priority_order: int, transition_count: int, saved: bool, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Optional. This command is REFUSED while a Play-in-Editor session is running: it either compiles a Blueprint (the reinstancer can retain a world, and CheckForWorldGCLeaks is Fatal -- it KILLS the editor) or writes to disk (Editor.AllowSavingAssetsDuringPIE=0 makes the engine refuse the write, so it would report success without writing a byte). Stop PIE and retry instead; force=true runs it anyway, at your own risk. | |
| to_state | No | Alias of `target_state` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `target_state`. | |
| blend_mode | No | Optional EAlphaBlendOption name, e.g. Linear, Cubic, HermiteCubic | |
| from_state | No | Alias of `source_state` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `source_state`. | |
| machine_name | Yes | Name of the state machine that owns both states | |
| source_state | No | Name of the source state (transition origin) | |
| target_state | No | Name of the target state (transition destination) | |
| bidirectional | No | Optional; also allow the reverse target->source transition | |
| blueprint_name | No | Alias of `anim_blueprint_path` (same value, same meaning). Accepted because sibling tools spell this parameter differently; prefer `anim_blueprint_path`. | |
| priority_order | No | Optional evaluation priority (higher wins) | |
| crossfade_duration | No | Optional blend duration in seconds (default 0.2) | |
| anim_blueprint_path | No | Path to the UAnimBlueprint asset |