Home / Godot / G21

Godot error: Animation not found: %s. — cause and fix

The AnimationPlayer plays or seeks an animation name that does not exist in its animation

ID
G21
Engine
Godot
Verification
源码原文(scene/animation/animation_player.cpp:436)
Frequency
未公开

Original message (verbatim)

Animation not found: %s.

Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.

Trigger

The AnimationPlayer plays or seeks an animation name that does not exist in its animation library: typo, animation not saved to an AnimationLibrary, or a switch to another library.

Typical cause

When the AnimationData lookup fails, ERR_FAIL_NULL_MSG prints this message and aborts the play or slice operation.

Step-by-step fix

  1. Check the animation name spelling and casing.
  2. Confirm the animation was saved into the current AnimationPlayer's library.
  3. After switching libraries, play animations from that library; do not reference old names across libraries.

Source links

Per-entry sources and capture date are listed at /sources#G21.

Related errors

Related Godot errors

Need an offline quick-reference checklist?

Atlas error library Pro pack: 123 error references (110 single + 13 merged) plus a quick-fix guide, $19 one-time purchase, delivered as electronic files.

View Pro pack / order

Back to the all-errors index Checkout and buy the Pro pack — $19.00