set_animation_for_state
Assign an animation sequence to a specific state in an Unreal Engine animation state machine, controlling looping behavior. Specify animation blueprint, state machine, state, and asset path to update animation states.
Instructions
Assign an animation sequence to a State Machine state.
Args: anim_blueprint_name: Animation Blueprint name state_machine_name: State machine name state_name: State to assign animation to animation_asset: Animation Sequence asset path loop: Loop the animation
KB: see knowledge_base/05_ANIMATION_SYSTEM.md#overview Example: set_animation_for_state(anim_blueprint_name="/Game/MCP_Test/BP_Example", state_machine_name="ExampleName", state_name="ExampleName", animation_asset="/Game/MCP_Test/Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | ||
| state_name | Yes | ||
| animation_asset | Yes | ||
| state_machine_name | Yes | ||
| anim_blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |