unity-animator

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

Updated May 20, 2026
One-click install
npx skills add https://github.com/yuse168/Roomies --skill unity-animator-yuse168
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unity-animator
Source: https://github.com/yuse168/Roomies/tree/main/.agents/skills/unity-skills/skills/animator
Command: npx skills add https://github.com/yuse168/Roomies --skill unity-animator-yuse168

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, defining parameters, and driving them at runtime. This Skill automates that entire workflow through programmatic skill calls. ## Core Features & Use Cases - Controller & State Machine Setup: Create Animator Controllers, add states and transitions with exit time and duration settings, and assign controllers to GameObjects. - Parameter Management: Add float, int, bool, and trigger parameters with defaults, then set them at runtime on any GameObject identified by name, instance ID, or hierarchy path. - Runtime Playback & Inspection: Play specific animation states on a chosen layer and query Animator component info, parameter lists, and state lists. - Use Case: Build a complete player animation setup — create a PlayerController, add Speed/IsGrounded/Jump parameters, assign it to the Player GameObject, then trigger jumps and drive locomotion values 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 set Speed to 5 at runtime.

Frequently Asked Questions about unity-animator

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

FAQPage Schema
How do I create an Animator Controller in Unity programmatically?▼

Use 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 Unity Animator parameters at runtime?▼

Call 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.

What parameter types does Unity Animator support?▼

Unity Animator supports four parameter types: float for values like speed, int for state indices, bool for flags like IsGrounded, and trigger for one-shot signals like Jump or Attack.

Can this skill create AnimationClips or change Animator speed?▼

No. AnimationClips are created through the Unity Editor or asset import, not this skill. To change Animator speed, use component_set_property on the Animator component with propertyName set to speed.

Why does animator_play behave differently outside Play mode?▼

When not in Play mode, the state machine only advances in Editor preview mode, so results are not fully equivalent to runtime behavior. Runtime parameter setting and state playback work as expected during actual Play mode.