class_animationnodeanimation.rst 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the AnimationNodeAnimation.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_AnimationNodeAnimation:
  6. AnimationNodeAnimation
  7. ======================
  8. **Inherits:** :ref:`AnimationRootNode<class_AnimationRootNode>` **<** :ref:`AnimationNode<class_AnimationNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Input animation to use in an :ref:`AnimationNodeBlendTree<class_AnimationNodeBlendTree>`.
  10. Description
  11. -----------
  12. A resource to add to an :ref:`AnimationNodeBlendTree<class_AnimationNodeBlendTree>`. Only features one output set using the :ref:`animation<class_AnimationNodeAnimation_property_animation>` property. Use it as an input for :ref:`AnimationNode<class_AnimationNode>` that blend animations together.
  13. Tutorials
  14. ---------
  15. - :doc:`AnimationTree <../tutorials/animation/animation_tree>`
  16. - `3D Platformer Demo <https://godotengine.org/asset-library/asset/125>`__
  17. - `Third Person Shooter Demo <https://godotengine.org/asset-library/asset/678>`__
  18. Properties
  19. ----------
  20. +-------------------------------------------------------+-------------------------------------------------------------------+---------+
  21. | :ref:`StringName<class_StringName>` | :ref:`animation<class_AnimationNodeAnimation_property_animation>` | ``&""`` |
  22. +-------------------------------------------------------+-------------------------------------------------------------------+---------+
  23. | :ref:`PlayMode<enum_AnimationNodeAnimation_PlayMode>` | :ref:`play_mode<class_AnimationNodeAnimation_property_play_mode>` | ``0`` |
  24. +-------------------------------------------------------+-------------------------------------------------------------------+---------+
  25. Enumerations
  26. ------------
  27. .. _enum_AnimationNodeAnimation_PlayMode:
  28. .. _class_AnimationNodeAnimation_constant_PLAY_MODE_FORWARD:
  29. .. _class_AnimationNodeAnimation_constant_PLAY_MODE_BACKWARD:
  30. enum **PlayMode**:
  31. - **PLAY_MODE_FORWARD** = **0**
  32. - **PLAY_MODE_BACKWARD** = **1**
  33. Property Descriptions
  34. ---------------------
  35. .. _class_AnimationNodeAnimation_property_animation:
  36. - :ref:`StringName<class_StringName>` **animation**
  37. +-----------+----------------------+
  38. | *Default* | ``&""`` |
  39. +-----------+----------------------+
  40. | *Setter* | set_animation(value) |
  41. +-----------+----------------------+
  42. | *Getter* | get_animation() |
  43. +-----------+----------------------+
  44. Animation to use as an output. It is one of the animations provided by :ref:`AnimationTree.anim_player<class_AnimationTree_property_anim_player>`.
  45. ----
  46. .. _class_AnimationNodeAnimation_property_play_mode:
  47. - :ref:`PlayMode<enum_AnimationNodeAnimation_PlayMode>` **play_mode**
  48. +-----------+----------------------+
  49. | *Default* | ``0`` |
  50. +-----------+----------------------+
  51. | *Setter* | set_play_mode(value) |
  52. +-----------+----------------------+
  53. | *Getter* | get_play_mode() |
  54. +-----------+----------------------+
  55. Determines the playback direction of the animation.
  56. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  57. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  58. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  59. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  60. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  61. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`