class_animatedsprite3d.rst 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_AnimatedSprite3D:
  4. AnimatedSprite3D
  5. ================
  6. **Inherits:** :ref:`SpriteBase3D<class_spritebase3d>` **<** :ref:`GeometryInstance<class_geometryinstance>` **<** :ref:`VisualInstance<class_visualinstance>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Member Functions
  11. ----------------
  12. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
  13. | :ref:`String<class_string>` | :ref:`get_animation<class_AnimatedSprite3D_get_animation>` **(** **)** const |
  14. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`int<class_int>` | :ref:`get_frame<class_AnimatedSprite3D_get_frame>` **(** **)** const |
  16. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`SpriteFrames<class_spriteframes>` | :ref:`get_sprite_frames<class_AnimatedSprite3D_get_sprite_frames>` **(** **)** const |
  18. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`bool<class_bool>` | :ref:`is_playing<class_AnimatedSprite3D_is_playing>` **(** **)** const |
  20. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
  21. | void | :ref:`play<class_AnimatedSprite3D_play>` **(** :ref:`String<class_string>` anim="" **)** |
  22. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
  23. | void | :ref:`set_animation<class_AnimatedSprite3D_set_animation>` **(** :ref:`String<class_string>` animation **)** |
  24. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`set_frame<class_AnimatedSprite3D_set_frame>` **(** :ref:`int<class_int>` frame **)** |
  26. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`set_sprite_frames<class_AnimatedSprite3D_set_sprite_frames>` **(** :ref:`SpriteFrames<class_spriteframes>` sprite_frames **)** |
  28. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
  29. | void | :ref:`stop<class_AnimatedSprite3D_stop>` **(** **)** |
  30. +------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
  31. Signals
  32. -------
  33. - **frame_changed** **(** **)**
  34. Emitted when frame is changed.
  35. Member Function Description
  36. ---------------------------
  37. .. _class_AnimatedSprite3D_get_animation:
  38. - :ref:`String<class_string>` **get_animation** **(** **)** const
  39. Return the name of the current animation set to the node.
  40. .. _class_AnimatedSprite3D_get_frame:
  41. - :ref:`int<class_int>` **get_frame** **(** **)** const
  42. Return the visible frame index.
  43. .. _class_AnimatedSprite3D_get_sprite_frames:
  44. - :ref:`SpriteFrames<class_spriteframes>` **get_sprite_frames** **(** **)** const
  45. Get the :ref:`SpriteFrames<class_spriteframes>` resource, which contains all frames.
  46. .. _class_AnimatedSprite3D_is_playing:
  47. - :ref:`bool<class_bool>` **is_playing** **(** **)** const
  48. Return true if an animation if currently being played.
  49. .. _class_AnimatedSprite3D_play:
  50. - void **play** **(** :ref:`String<class_string>` anim="" **)**
  51. Play the animation set in parameter. If no parameter is provided, the current animation is played.
  52. .. _class_AnimatedSprite3D_set_animation:
  53. - void **set_animation** **(** :ref:`String<class_string>` animation **)**
  54. Set the current animation of the node and reinits the frame counter of the animation.
  55. .. _class_AnimatedSprite3D_set_frame:
  56. - void **set_frame** **(** :ref:`int<class_int>` frame **)**
  57. Set the visible sprite frame index (from the list of frames inside the :ref:`SpriteFrames<class_spriteframes>` resource).
  58. .. _class_AnimatedSprite3D_set_sprite_frames:
  59. - void **set_sprite_frames** **(** :ref:`SpriteFrames<class_spriteframes>` sprite_frames **)**
  60. Set the :ref:`SpriteFrames<class_spriteframes>` resource, which contains all frames.
  61. .. _class_AnimatedSprite3D_stop:
  62. - void **stop** **(** **)**
  63. Stop the current animation (does not reset the frame counter).