Home / Godot / G22

Godot error: Marker %s not found in animation: %s. — cause and fix

Playing a sliced animation by start / end marker, but the named marker does not exist in t

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

Original message (verbatim)

Marker %s not found in animation: %s.

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

Trigger

Playing a sliced animation by start / end marker, but the named marker does not exist in that Animation.

Typical cause

Before playback, has_marker validates the start and end markers; if either is missing, ERR_FAIL_COND_MSG aborts.

Step-by-step fix

  1. Create the matching marker on the animation timeline and check its name.
  2. Confirm the marker belongs to the current animation, not another one.
  3. When duplicating an animation, check markers were copied; re-add them if missing.

Source links

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

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