animation

Coordinate Unity Animator parameters, transitions, layers, and timed callbacks for gameplay.

Updated May 6, 2026
One-click install
npx skills add https://github.com/BasarEkinci/memory-card-game --skill animation-basarekinci
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: animation
Source: https://github.com/BasarEkinci/memory-card-game/tree/main/.claude/skills/systems/animation
Command: npx skills add https://github.com/BasarEkinci/memory-card-game --skill animation-basarekinci

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the challenge of making Unity animations reliably control gameplay moments, blending visuals smoothly, and triggering synchronized effects without brittle frame-by-frame hacks.

Core Features & Use Cases

  • Animator Controller setup: define parameters, transitions, layers, and state machine flow for consistent character behavior.
  • Timed gameplay hooks: use StateMachineBehaviours and Animation Events to enable/disable hitboxes, play sounds, and spawn VFX at the right moment.
  • Advanced motion control: support root motion, IK, and layer masking to get believable movement while keeping systems decoupled.
  • Performance & safety: reduce GC pressure by caching component references, avoiding allocations in update callbacks, and choosing correct culling/update modes.
  • Use Case: coordinate melee attacks where hitboxes activate during the exact swing frames, upper-body shooting layers override locomotion, and Timeline signals trigger cinematic effects.

Quick Start

Configure your Animator controller layers, then attach StateMachineBehaviours and animation-event receivers so gameplay events (hitboxes, sounds, VFX) fire on the exact frames for each animation state.

Frequently Asked Questions about animation

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

FAQPage Schema
How do I trigger gameplay events like hitboxes during exact animation frames in Unity?

To trigger gameplay events during exact Unity animation frames, use StateMachineBehaviours and Animation Events to enable hitboxes, play sounds, and spawn VFX at precise moments without brittle frame-by-frame hacks. This ensures synchronized effects across character controllers.

What is the best way to blend upper-body shooting layers with locomotion using Unity Animator controllers?

The best way to blend upper-body actions with locomotion in Unity is by utilizing Animator controller layers with layer masking. This approach applies overrides to specific body parts, allowing believable movement while keeping animation systems decoupled.

How do I reduce GC pressure when running Unity Animator update callbacks?

To reduce GC pressure during Unity Animator updates, implement allocation-safe patterns by caching component references and avoiding allocations inside update callbacks. Choosing correct culling and update modes further minimizes garbage collection performance spikes.

Can I use root motion and IK for character posing while keeping gameplay systems decoupled?

Yes, you can use root motion and IK for character posing while keeping systems decoupled. The Skill supports advanced motion control through root motion and IK-driven posing to achieve believable movement alongside independent gameplay logic.

How do Timeline signals trigger cinematic effects with Unity Animator parameters?

Timeline signals trigger cinematic effects by coordinating Animator parameters and timed callbacks across diverse animation state scenarios. This allows seamless transitions between gameplay and cinematic sequences using robust animation event receivers.

Why should I use StateMachineBehaviour lifecycle hooks instead of frame-by-frame animation hacks?

You should use StateMachineBehaviour lifecycle hooks instead of frame-by-frame hacks because they provide robust state transition control and reliable timed callbacks. This prevents brittle logic and ensures gameplay moments fire accurately on intended frames.