# Generating Unity Animations with AI in Under a Minute

Use AI to generate an animation controller with Idle, Walk, and Jump animations directly inside Unity — no manual keyframing required.

_Last updated: 2026-03-24_

What if you could skip the tedious keyframing process and let AI generate character animations for you — right inside the Unity Editor? In this walkthrough we do exactly that: starting from a plain character controller with zero animations, we use AI Game Developer to produce an Animator Controller plus three animation clips (Idle, Walk, Jump) in about a minute.

[Video: Generating Unity Animations with AI Game Developer] (https://www.youtube.com/watch?v=SkNdv7v8tfU)

## The Starting Point

We begin with a public Character Controller sample — a small character that can walk around and jump, but has no animations attached. The character moves, but it looks stiff and lifeless. Our goal: ask AI to create an Idle animation, a Walk animation, a Jump animation, and the Animator Controller that wires them together.

## Setting Up AI Game Developer

If you haven't installed AI Game Developer yet, grab the installer from the GitHub repository and import the package into your Unity project. Once imported, the AI Game Developer window appears in Unity. Configure your MCP client — in this demo we use Visual Studio Code with Copilot.

1. Open the AI Game Developer window in Unity
2. Click "Configure" to set up your MCP client
3. In VS Code, find "AI Game Developer" in the extensions panel and click Start
4. The status changes to "Connected" — you're ready to prompt

## One Prompt, Three Animations

With a single prompt we ask AI to create an animation controller plus three animation clips for the character. The AI immediately gets to work: it queries the scene data, finds the character GameObject, and starts building.

### How the AI Works Behind the Scenes

AI Game Developer exposes a rich set of MCP tools that let the AI interact with Unity. First, it calls scene_get_data to understand the scene hierarchy. Then it works step by step — attaching an Animator component, creating animation clips, and building the controller. When it encounters an obstacle (like a serialization issue with an interface), it automatically falls back to an alternative approach: executing C# code directly in the Unity Engine without recompilation. This gives it access to the full Unity API.

## Reviewing the Results

After about a minute, the AI finishes. We now have three animation clips and an Animator Controller attached to the character:

- Idle — a subtle breathing motion that brings the character to life
- Jump — a clean jump arc that plays once per jump
- Walk — a rhythmic walking cycle for movement

## Fixing the Loop Settings

On the first test run we notice that the Idle and Walk animations play once and stop instead of looping continuously. The Jump animation correctly plays once, but Idle and Walk need to loop. A quick follow-up prompt asking AI to enable looping on those two clips is all it takes — the AI reads the animation clip data, flips the loop flag on both, and confirms it's done. The whole fix takes seconds.

## Final Result

After saving and hitting Play, everything works: the character breathes while idle, walks with a looping animation, and performs a single jump animation on command. The camera follows the character naturally. What would typically require manual keyframing or importing animations from an external tool was accomplished entirely through AI prompts inside Unity.

## Get Started

AI Game Developer is open source. Install the Unity package, connect your MCP client, and start prompting. The AI Animation extension handles all the animation-specific tooling. See the quickstart guide at ai-game.dev/docs/quickstart to get set up.

- AI Game Developer (Unity-MCP): github.com/IvanMurzak/Unity-MCP
- AI Animation Extension: github.com/IvanMurzak/Unity-AI-Animation
- Download: ai-game.dev/download
- Setup guide: Connect Claude Code to Unity — ai-game.dev/blog/claude-code-unity-tutorial

---

Source (HTML): https://ai-game.dev/blog/generating-unity-animations-with-ai
