unity-animator
Agent skill fromBesty0728/Unity-Skills
Edit Unity Animator Controllers and drive runtime parameters
How to install unity-animator
install unity-animator
# install the Unity-Skills pack with the skills CLI
npx skills add Besty0728/Unity-Skills# or add only this skill to Claude Code: copy the folder
SkillsForUnity/unity-skills~/skills/animator/
# into
~/.claude/skills/animator/ (all projects)
.claude/skills/animator/ (one project)
1> **Before calling any skill in this module:** if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via `GET /skills/recommend?includeSchema=true`) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.23## Triggers4- Setting up or wiring an Animator5- Adjusting animation state machines6- Driving animation parameters at runtime7- 搭建或连接 Animator、调整动画状态机、运行时驱动动画参数89# Unity Animator Skills1011Control Unity's Mecanim system — create Animator Controllers, add layers' states / transitions / parameters, assign controllers to GameObjects, set parameters at runtime, and play states.1213## Operating Mode1415- **Approval**:查询类 skill(`animator_get_parameters` / `animator_get_info` / `animator_list_states`,源码标 `SkillMode.SemiAuto`)直接执行;其余变更类(create_controller / add_parameter / set_parameter / play / assign_controller / add_state / add_transition,标 `SkillMode.FullAuto`)需用户 grant,grant 后服务端一步执行返结果。16- **Auto / Bypass**:所有 skill 直接执行;Auto 走 AI 自我评估,Bypass 全放行。17- 本模块**不含** Delete / PlayMode / Reload / 高危 skill,无 Bypass-only 拦截项。18- `animator_set_parameter` / `animator_play` 作用于场景中已挂 Animator 的 GameObject;如果当前不在 Play mode,状态机只在 Editor 预览模式推进,效果与 runtime 不完全等价。1920**DO NOT** (common hallucinations):21- `animator_create_clip` / `animator_add_clip` do not exist → AnimationClips are created via Unity Editor or asset import22…
Excerpt shown under the repository's MIT license.
