animation
Control Unity animation and timeline playback, manage Animator parameters, and create clips via AI commands.
Instructions
Controls Unity Animation and Timeline systems. Actions:
play: Play animation on a GameObject
stop: Stop animation
pause: Pause animation
sample: Sample animation at specific time
get_clips: List animation clips on an Animator
get_parameters: Get Animator parameters
set_parameter: Set an Animator parameter (float, int, bool, trigger)
get_state_info: Get current Animator state info
crossfade: Crossfade to an animation state
get_timeline_state: Get Timeline playback state
set_timeline_time: Set Timeline playback position
play_timeline: Control Timeline playback
record_animation: Start/stop animation recording
create_clip: Create a new animation clip
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| speed | No | Animation playback speed | |
| action | Yes | Animation action to perform | |
| clipName | No | Name of the animation clip | |
| objectId | No | Instance ID of the GameObject | |
| wrapMode | No | Animation wrap mode | |
| stateName | No | Name of the Animator state | |
| layerIndex | No | Animator layer index (default: 0) | |
| objectPath | No | Hierarchy path of the GameObject | |
| newClipPath | No | Path for new animation clip | |
| timelineTime | No | Time position for Timeline | |
| parameterName | No | Name of the Animator parameter | |
| parameterType | No | Type of the Animator parameter | |
| normalizedTime | No | Normalized time (0-1) for sampling or crossfade | |
| parameterValue | No | Value to set for the parameter | |
| timelineAction | No | Timeline playback action | |
| recordingAction | No | Animation recording action | |
| transitionDuration | No | Duration of crossfade transition in seconds |