AnimatedSprite3D
2D sprite node in 3D world, that can use multiple 2D textures for animation.
Animations are created using a resource, which can be configured in the editor via the SpriteFrames panel.
Tutorials
Methods
void | ( String anim=”” ) |
void | ( ) |
- animation_finished ( )
Emitted when the animation is finished (when it plays the last frame). If the animation is looping, this signal is emitted every time the last frame is drawn.
- frame_changed ( )
Emitted when changed.
Property Descriptions
- animation
The current animation from the resource. If this value changes, the frame
counter is reset.
Default | |
Setter | set_frame(value) |
Getter | get_frame() |
The displayed animation frame’s index.
- SpriteFrames frames
The resource containing the animation(s).
- bool playing
Default |
|
If , the is currently playing.
- is_playing ( ) const
Returns true
if an animation is currently being played.
- void play ( String anim=”” )
- void stop ( )
Stops the current animation (does not reset the frame counter).