Animations

Abhishek Smith

Abhishek Smith

Building Outscal | Land Jobs in the gaming industry | EA, Epic Games, TCS, | CMU, IIT K

Animation Control

  • Play - Direct animation playback
  • CrossFade - Smooth transitions
  • PlayInFixedTime - Precise timing control
  • StopPlayback - Halt animations

State Management

  • IsInTransition - Check transition status
  • GetCurrentAnimatorStateInfo - Track current state
  • GetNextAnimatorStateInfo - Preview upcoming state
  • Rebind - Reset entire animator

Layer System

  • SetLayerWeight - Fine-tune blending
  • GetLayerWeight - Read blend values
  • GetLayerName/Index - Layer identification
  • Layer indexing for partial animations

Core Properties

  • applyRootMotion - Physics-based movement
  • bodyPosition/Rotation - Direct transforms
  • updateMode - Sync with physics
  • stabilizeFeet - Improved grounding

Events & Timing

  • AnimationEvent - Trigger callbacks
  • Multiple parameter types (float/int/string)
  • Precise timing control
  • Runtime event creation

Animation Curves

  • Linear/EaseInOut - Quick curve creation
  • AddKey/RemoveKey - Custom curve editing
  • MoveKey - Adjust timing
  • Evaluate - Get values at any time

Pro Tips:

  • Always use StringToHash for parameters

Cache animator references

Use layers for partial body animations

CrossFade for smoother transitions


Common Pitfalls

  • Using string parameters in Update
  • Not resetting triggers
  • Ignoring layer weights
  • Forgetting to handle transitions

Show More