unity-animator

Create and control Unity Animator Controllers, states, transitions, and runtime parameters.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-animator-du-qwq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-animator
Source: https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications/tree/main/.agents/skills/unity-skills/skills/animator
Command: npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-animator-du-qwq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up Unity's Mecanim animation system requires repetitive manual work in the editor: creating Animator Controllers, wiring states and transitions, adding parameters, and driving them at runtime. This Skill automates the entire Animator workflow through programmatic skill calls. ## Core Features & Use Cases - Controller & State Machine Setup: Create Animator Controllers, add states with optional AnimationClips, and wire transitions with exit time and duration settings. - Parameter Management: Add float, int, bool, and trigger parameters to controllers, then set them at runtime on any GameObject identified by name, instance ID, or hierarchy path. - Runtime Playback Control: Assign controllers to GameObjects, play specific states on any layer, and inspect Animator component info like speed, root motion, and layer count. - Use Case: Build a complete player animation setup — create a PlayerController, add Speed/IsGrounded/Jump parameters, assign it to the Player character, then trigger jumps and drive locomotion at runtime. ## Quick Start Create an Animator Controller named PlayerController, add a float Speed parameter and a Jump trigger, assign it to the Player GameObject, and play the Idle state.

Frequently Asked Questions about unity-animator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Unity Animator Controller programmatically?

Call animator_create_controller with a name and optional save folder, which defaults to Assets/Animations. Then add parameters with animator_add_parameter and states with animator_add_state before assigning it to a GameObject.

How to set Animator parameters at runtime in Unity?

Use animator_set_parameter with the target GameObject identified by name, instanceId, or path, plus the parameter name, type, and value. Trigger parameters fire without a value and reset automatically after firing.

Can this skill create AnimationClips for Unity?

No, animator_create_clip and animator_add_clip do not exist. AnimationClips are created through the Unity Editor or asset import, then referenced by path when adding states to a controller.

Does animator_set_parameter work outside Play mode?

It works on GameObjects with an Animator component, but outside Play mode the state machine only advances in Editor preview mode. The effect is not fully equivalent to runtime behavior.

How do I change Animator speed in Unity?

There is no animator_set_parameter for speed; use component_set_property on the Animator component with propertyName set to speed. Animator speed is a component property, not a controller parameter.