๐Ÿ”ธCharacter Animation Component

This page explains the main component in the system.

Overview

The Character Animation Component is the central MonoBehaviour in CAS. It handles:

  1. Pose blending.

  2. Animation Slots to play clips at runtime.

Character Animation Component.

This component uses the Character Animation Settings asset to update the active Overlay and Procedural Animation modifiers.

Character Animation Settings

Character Animation Settings.
circle-check
  • Blend Time โ€” Ease Mode sets the interpolation; Blend In/Out Time sets the seconds to blend in/out.

  • Base Pose โ€” the standing idle animation.

  • Overlay Pose โ€” the weapon/item clip. Always assign this; Layered Blending depends on it.

  • Overlay Animator โ€” assign an Animator Controller for complex overlay logic (states, transitions, blend trees).

  • Procedural Settings โ€” Animation Modifiers that dynamically animate bones.

circle-info

Tip: This asset can serve as a profile or a preset for a weapon, item or a gameplay situation. It's recommended to create CAS assets for different scenarios and update them at runtime.

You can update Character Animation Settings at runtime:

Example usage:

Pose Blending

The component supports on-demand pose blending:

When called, it caches the current pose on the animation thread, then blends from the cached to the live pose starting next frame.

A common use case is switching Animator Controllers, since Unity doesnโ€™t natively smooth transitions between different Animators.

circle-exclamation

The next page explains how to use Animation Slots and play clips from code.

Last updated