AnimatedSprite3D

    Category: Core

    2D sprite node in 3D world, that can use multiple 2D textures for animation.

    Properties

    Signals

    • frame_changed ( )

    Emitted when changed.

    Property Descriptions

    The current animation from the resource. If this value changes, the counter is reset.


    The displayed animation frame’s index.


    • frames

    The SpriteFrames resource containing the animation(s).


    • playing
    • bool is_playing ( ) const

    Returns if an animation if currently being played.


    • void play ( anim=”” )

    Play the animation set in parameter. If no parameter is provided, the current animation is played.


    Stop the current animation (does not reset the frame counter).