Unity AI动画工具

Unity AI Animation 是一款面向 Unity 动画工作流的 AI 驱动工具,通过自然语言指令创建和修改 AnimationClips 与 AnimatorControllers,适用于快速原型、程序化动画生成和复杂动画状态机搭建。

  • by IvanMurzak
  • C#
  • 本地部署
  • 119 星标
  • 更新于
在 GitHub 查看 IvanMurzak/Unity-AI-Animation

使用说明

Unity AI Animation

AI-powered tools for Unity animation workflow. Create and modify AnimationClips and AnimatorControllers directly through natural language commands. Automate repetitive animation tasks like setting up state machines, configuring transitions, and adding keyframes. Ideal for rapid prototyping, procedural animation generation, and streamlining complex animator setups. Built on top of the AI Game Developer platform.

How to use

Stability status

Unity Version Editmode Playmode Standalone
2022.3.62f3
2023.2.22f1
6000.3.1f1

RQL (no extension tools)

With Unity-MCP 1.0.0 this package adds no MCP tools: it contributes an RQL module, so agents use rql-query / rql-mutate (the unity-rql skill carries the full guide with examples).

Former tool RQL
animation-create animation | call CreateClip("Assets/Animations/Walk.anim", 30, true) (path, frameRate, loop)
animation-get-data unity.asset("….anim") | select name length frameRate isLooping, … | get curves | select path type property keys, … | get events
animation-modify call SetCurve("", "Transform", "localPosition.y", [[0, 0], [1, 2]]), RemoveCurve, ClearCurves, AddEvent(0.5, "Footstep"), RemoveEvent, ClearEvents; set frameRate = 30, wrapMode = "Loop", settings.loopTime = true, set curves[0].keys[1].value = 2, set events[0].time = 0.25
animator-create animation | call CreateController("Assets/Animations/Player.controller")
animator-get-data unity.asset("….controller") | get layers | get states | select name speed motion.name transitions.destinationState.name, … | get parameters
animator-modify call AddParameter("Speed", "Float"), RemoveParameter, AddLayer, RemoveLayer, AddState("Walk", unity.asset("….anim")), RemoveState, SetDefaultState, AddTransition("Idle", "Walk", "Speed", "Greater", 0.1), AddAnyStateTransition, RemoveTransition; … | get states | where name == "Walk" | set speed = 1.5

Installation

Option 1 - Installer

  • ⬇️ Download Installer
  • 📂 Import installer into Unity project
    • You can double-click on the file - Unity will open it automatically
    • OR: Open Unity Editor first, then click on Assets/Import Package/Custom Package, and choose the file

Option 2 - OpenUPM-CLI

openupm add com.ivanmurzak.unity.mcp.animation