AnimatedSprite3D¶
Inherits: SpriteBase3D < GeometryInstance < VisualInstance < Spatial < Node < Object
2D sprite node in 3D world, that can use multiple 2D textures for animation.
Description¶
Animations are created using a SpriteFrames resource, which can be configured in the editor via the SpriteFrames panel.
Property Descriptions¶
- String animation
| Default | "default" |
| Setter | set_animation(value) |
| Getter | get_animation() |
The current animation from the frames resource. If this value changes, the frame counter is reset.
- int frame
| Default | 0 |
| Setter | set_frame(value) |
| Getter | get_frame() |
The displayed animation frame’s index.
- SpriteFrames frames
| Setter | set_sprite_frames(value) |
| Getter | get_sprite_frames() |
The SpriteFrames resource containing the animation(s).
- bool playing
| Default | false |
If true, the animation is currently playing.