.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the AnimatedSprite3D.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_AnimatedSprite3D: AnimatedSprite3D ================ **Inherits:** :ref:`SpriteBase3D` **<** :ref:`GeometryInstance` **<** :ref:`VisualInstance` **<** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- 2D sprite node in 3D world, that can use multiple 2D textures for animation. Member Functions ---------------- +--------------------------+------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_playing` **(** **)** const | +--------------------------+------------------------------------------------------------------------------------------+ | void | :ref:`play` **(** :ref:`String` anim="" **)** | +--------------------------+------------------------------------------------------------------------------------------+ | void | :ref:`stop` **(** **)** | +--------------------------+------------------------------------------------------------------------------------------+ Signals ------- .. _class_AnimatedSprite3D_frame_changed: - **frame_changed** **(** **)** Emitted when :ref:`frame` changed. Member Variables ---------------- .. _class_AnimatedSprite3D_animation: - :ref:`String` **animation** - The current animation from the ``frames`` resource. If this value changes, the ``frame`` counter is reset. .. _class_AnimatedSprite3D_frame: - :ref:`int` **frame** - The displayed animation frame's index. .. _class_AnimatedSprite3D_frames: - :ref:`SpriteFrames` **frames** - The :ref:`SpriteFrames` resource containing the animation(s). .. _class_AnimatedSprite3D_playing: - :ref:`bool` **playing** - If ``true`` the :ref:`animation` is currently playing. Description ----------- Animations are created using a :ref:`SpriteFrames` resource, which can be configured in the editor via the SpriteFrames panel. Member Function Description --------------------------- .. _class_AnimatedSprite3D_is_playing: - :ref:`bool` **is_playing** **(** **)** const Return true if an animation if currently being played. .. _class_AnimatedSprite3D_play: - void **play** **(** :ref:`String` anim="" **)** Play the animation set in parameter. If no parameter is provided, the current animation is played. .. _class_AnimatedSprite3D_stop: - void **stop** **(** **)** Stop the current animation (does not reset the frame counter).