AnimatedSprite3D
Inherits: SpriteBase3D < GeometryInstance < VisualInstance < CullInstance < Spatial < Node < Object 2D sprite node in 3D world, that can use multiple 2D textures for animation.
Description
SpriteFrames resource, which can be configured in the editor via the SpriteFrames panel.
Tutorials
- 2D Sprite animation (also applies to 3D)
Properties
Methods
Signals
- 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 ( )
frame changed.
Property Descriptions
- String animation
framesresource. If this value changes, theframecounter is reset.
- int frame The displayed animation frame’s index.
- SpriteFrames frames SpriteFrames resource containing the animation(s).
- bool playing
true, the animation is currently playing.Method Descriptions
- bool is_playing ( ) const
trueif an animation is currently being played.
- play ( String anim=”” )
anim. If noanimis provided, the current animation is played.
- stop ( ) Stops the current animation (does not reset the frame counter).
