Home / Godot / G35

Godot error: A SpriteFrames resource must be created or set in the "Sprite Frames" property in order for AnimatedSprite2D to display frames. — cause and fix

The AnimatedSprite2D node enters playback without a SpriteFrames resource assigned, so it

ID
G35
Engine
Godot
Verification
源码原文(scene/2d/animated_sprite_2d.cpp:612)
Frequency
未公开

Original message (verbatim)

A SpriteFrames resource must be created or set in the "Sprite Frames" property in order for AnimatedSprite2D to display frames.

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

Trigger

The AnimatedSprite2D node enters playback without a SpriteFrames resource assigned, so it has no frame data to display.

Typical cause

When AnimatedSprite2D fetches the current frame it detects frames is empty, prints this notice, and keeps rendering nothing.

Step-by-step fix

  1. Create or assign a SpriteFrames resource in the Sprite Frames inspector property.
  2. Add at least one frame to the default animation.
  3. Inject the resource with set_sprite_frames at runtime before calling play.

Source links

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

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