class_animationnodetransition.rst 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/AnimationNodeTransition.xml.
  6. .. _class_AnimationNodeTransition:
  7. AnimationNodeTransition
  8. =======================
  9. **Inherits:** :ref:`AnimationNodeSync<class_AnimationNodeSync>` **<** :ref:`AnimationNode<class_AnimationNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A generic animation transition node for :ref:`AnimationTree<class_AnimationTree>`.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Simple state machine for cases which don't require a more advanced :ref:`AnimationNodeStateMachine<class_AnimationNodeStateMachine>`. Animations can be connected to the inputs and transition times can be specified.
  15. .. rst-class:: classref-introduction-group
  16. Tutorials
  17. ---------
  18. - :doc:`AnimationTree <../tutorials/animation/animation_tree>`
  19. - `3D Platformer Demo <https://godotengine.org/asset-library/asset/125>`__
  20. - `Third Person Shooter Demo <https://godotengine.org/asset-library/asset/678>`__
  21. .. rst-class:: classref-reftable-group
  22. Properties
  23. ----------
  24. .. table::
  25. :widths: auto
  26. +---------------------------+------------------------------------------------------------------------------+----------+
  27. | :ref:`int<class_int>` | :ref:`enabled_inputs<class_AnimationNodeTransition_property_enabled_inputs>` | ``0`` |
  28. +---------------------------+------------------------------------------------------------------------------+----------+
  29. | :ref:`bool<class_bool>` | :ref:`from_start<class_AnimationNodeTransition_property_from_start>` | ``true`` |
  30. +---------------------------+------------------------------------------------------------------------------+----------+
  31. | :ref:`Curve<class_Curve>` | :ref:`xfade_curve<class_AnimationNodeTransition_property_xfade_curve>` | |
  32. +---------------------------+------------------------------------------------------------------------------+----------+
  33. | :ref:`float<class_float>` | :ref:`xfade_time<class_AnimationNodeTransition_property_xfade_time>` | ``0.0`` |
  34. +---------------------------+------------------------------------------------------------------------------+----------+
  35. .. rst-class:: classref-reftable-group
  36. Methods
  37. -------
  38. .. table::
  39. :widths: auto
  40. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`String<class_String>` | :ref:`get_input_caption<class_AnimationNodeTransition_method_get_input_caption>` **(** :ref:`int<class_int>` input **)** |const| |
  42. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`bool<class_bool>` | :ref:`is_input_set_as_auto_advance<class_AnimationNodeTransition_method_is_input_set_as_auto_advance>` **(** :ref:`int<class_int>` input **)** |const| |
  44. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | void | :ref:`set_input_as_auto_advance<class_AnimationNodeTransition_method_set_input_as_auto_advance>` **(** :ref:`int<class_int>` input, :ref:`bool<class_bool>` enable **)** |
  46. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | void | :ref:`set_input_caption<class_AnimationNodeTransition_method_set_input_caption>` **(** :ref:`int<class_int>` input, :ref:`String<class_String>` caption **)** |
  48. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. .. rst-class:: classref-section-separator
  50. ----
  51. .. rst-class:: classref-descriptions-group
  52. Property Descriptions
  53. ---------------------
  54. .. _class_AnimationNodeTransition_property_enabled_inputs:
  55. .. rst-class:: classref-property
  56. :ref:`int<class_int>` **enabled_inputs** = ``0``
  57. .. rst-class:: classref-property-setget
  58. - void **set_enabled_inputs** **(** :ref:`int<class_int>` value **)**
  59. - :ref:`int<class_int>` **get_enabled_inputs** **(** **)**
  60. The number of enabled input ports for this node.
  61. .. rst-class:: classref-item-separator
  62. ----
  63. .. _class_AnimationNodeTransition_property_from_start:
  64. .. rst-class:: classref-property
  65. :ref:`bool<class_bool>` **from_start** = ``true``
  66. .. rst-class:: classref-property-setget
  67. - void **set_from_start** **(** :ref:`bool<class_bool>` value **)**
  68. - :ref:`bool<class_bool>` **is_from_start** **(** **)**
  69. If ``true``, the destination animation is played back from the beginning when switched.
  70. .. rst-class:: classref-item-separator
  71. ----
  72. .. _class_AnimationNodeTransition_property_xfade_curve:
  73. .. rst-class:: classref-property
  74. :ref:`Curve<class_Curve>` **xfade_curve**
  75. .. rst-class:: classref-property-setget
  76. - void **set_xfade_curve** **(** :ref:`Curve<class_Curve>` value **)**
  77. - :ref:`Curve<class_Curve>` **get_xfade_curve** **(** **)**
  78. .. container:: contribute
  79. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  80. .. rst-class:: classref-item-separator
  81. ----
  82. .. _class_AnimationNodeTransition_property_xfade_time:
  83. .. rst-class:: classref-property
  84. :ref:`float<class_float>` **xfade_time** = ``0.0``
  85. .. rst-class:: classref-property-setget
  86. - void **set_xfade_time** **(** :ref:`float<class_float>` value **)**
  87. - :ref:`float<class_float>` **get_xfade_time** **(** **)**
  88. Cross-fading time (in seconds) between each animation connected to the inputs.
  89. .. rst-class:: classref-section-separator
  90. ----
  91. .. rst-class:: classref-descriptions-group
  92. Method Descriptions
  93. -------------------
  94. .. _class_AnimationNodeTransition_method_get_input_caption:
  95. .. rst-class:: classref-method
  96. :ref:`String<class_String>` **get_input_caption** **(** :ref:`int<class_int>` input **)** |const|
  97. .. container:: contribute
  98. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  99. .. rst-class:: classref-item-separator
  100. ----
  101. .. _class_AnimationNodeTransition_method_is_input_set_as_auto_advance:
  102. .. rst-class:: classref-method
  103. :ref:`bool<class_bool>` **is_input_set_as_auto_advance** **(** :ref:`int<class_int>` input **)** |const|
  104. .. container:: contribute
  105. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  106. .. rst-class:: classref-item-separator
  107. ----
  108. .. _class_AnimationNodeTransition_method_set_input_as_auto_advance:
  109. .. rst-class:: classref-method
  110. void **set_input_as_auto_advance** **(** :ref:`int<class_int>` input, :ref:`bool<class_bool>` enable **)**
  111. .. container:: contribute
  112. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  113. .. rst-class:: classref-item-separator
  114. ----
  115. .. _class_AnimationNodeTransition_method_set_input_caption:
  116. .. rst-class:: classref-method
  117. void **set_input_caption** **(** :ref:`int<class_int>` input, :ref:`String<class_String>` caption **)**
  118. .. container:: contribute
  119. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  120. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  121. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  122. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  123. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  124. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  125. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`