class_animatedsprite3d.rst 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. Member Variables
  35. ----------------
  36. - :ref:`String<class_string>` **animation**
  37. - :ref:`int<class_int>` **frame**
  38. - :ref:`SpriteFrames<class_spriteframes>` **frames**
  39. - :ref:`bool<class_bool>` **playing**
  40. Member Function Description
  41. ---------------------------
  42. .. _class_AnimatedSprite3D_get_animation:
  43. - :ref:`String<class_string>` **get_animation** **(** **)** const
  44. Return the name of the current animation set to the node.
  45. .. _class_AnimatedSprite3D_get_frame:
  46. - :ref:`int<class_int>` **get_frame** **(** **)** const
  47. Return the visible frame index.
  48. .. _class_AnimatedSprite3D_get_sprite_frames:
  49. - :ref:`SpriteFrames<class_spriteframes>` **get_sprite_frames** **(** **)** const
  50. Get the :ref:`SpriteFrames<class_spriteframes>` resource, which contains all frames.
  51. .. _class_AnimatedSprite3D_is_playing:
  52. - :ref:`bool<class_bool>` **is_playing** **(** **)** const
  53. Return true if an animation if currently being played.
  54. .. _class_AnimatedSprite3D_play:
  55. - void **play** **(** :ref:`String<class_string>` anim="" **)**
  56. Play the animation set in parameter. If no parameter is provided, the current animation is played.
  57. .. _class_AnimatedSprite3D_set_animation:
  58. - void **set_animation** **(** :ref:`String<class_string>` animation **)**
  59. Set the current animation of the node and reinits the frame counter of the animation.
  60. .. _class_AnimatedSprite3D_set_frame:
  61. - void **set_frame** **(** :ref:`int<class_int>` frame **)**
  62. Set the visible sprite frame index (from the list of frames inside the :ref:`SpriteFrames<class_spriteframes>` resource).
  63. .. _class_AnimatedSprite3D_set_sprite_frames:
  64. - void **set_sprite_frames** **(** :ref:`SpriteFrames<class_spriteframes>` sprite_frames **)**
  65. Set the :ref:`SpriteFrames<class_spriteframes>` resource, which contains all frames.
  66. .. _class_AnimatedSprite3D_stop:
  67. - void **stop** **(** **)**
  68. Stop the current animation (does not reset the frame counter).