class_animationnodetransition.rst 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/AnimationNodeTransition.xml.
  6. .. _class_AnimationNodeTransition:
  7. AnimationNodeTransition
  8. =======================
  9. **Inherits:** :ref:`AnimationNode<class_AnimationNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :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:`input_count<class_AnimationNodeTransition_property_input_count>` | ``0`` |
  28. +---------------------------+------------------------------------------------------------------------+---------+
  29. | :ref:`float<class_float>` | :ref:`xfade_time<class_AnimationNodeTransition_property_xfade_time>` | ``0.0`` |
  30. +---------------------------+------------------------------------------------------------------------+---------+
  31. .. rst-class:: classref-reftable-group
  32. Methods
  33. -------
  34. .. table::
  35. :widths: auto
  36. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`String<class_String>` | :ref:`get_input_caption<class_AnimationNodeTransition_method_get_input_caption>` **(** :ref:`int<class_int>` input **)** |const| |
  38. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :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| |
  40. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | 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 **)** |
  42. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | void | :ref:`set_input_caption<class_AnimationNodeTransition_method_set_input_caption>` **(** :ref:`int<class_int>` input, :ref:`String<class_String>` caption **)** |
  44. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. .. rst-class:: classref-section-separator
  46. ----
  47. .. rst-class:: classref-descriptions-group
  48. Property Descriptions
  49. ---------------------
  50. .. _class_AnimationNodeTransition_property_input_count:
  51. .. rst-class:: classref-property
  52. :ref:`int<class_int>` **input_count** = ``0``
  53. .. rst-class:: classref-property-setget
  54. - void **set_enabled_inputs** **(** :ref:`int<class_int>` value **)**
  55. - :ref:`int<class_int>` **get_enabled_inputs** **(** **)**
  56. The number of available input ports for this node.
  57. .. rst-class:: classref-item-separator
  58. ----
  59. .. _class_AnimationNodeTransition_property_xfade_time:
  60. .. rst-class:: classref-property
  61. :ref:`float<class_float>` **xfade_time** = ``0.0``
  62. .. rst-class:: classref-property-setget
  63. - void **set_cross_fade_time** **(** :ref:`float<class_float>` value **)**
  64. - :ref:`float<class_float>` **get_cross_fade_time** **(** **)**
  65. Cross-fading time (in seconds) between each animation connected to the inputs.
  66. .. rst-class:: classref-section-separator
  67. ----
  68. .. rst-class:: classref-descriptions-group
  69. Method Descriptions
  70. -------------------
  71. .. _class_AnimationNodeTransition_method_get_input_caption:
  72. .. rst-class:: classref-method
  73. :ref:`String<class_String>` **get_input_caption** **(** :ref:`int<class_int>` input **)** |const|
  74. .. container:: contribute
  75. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  76. .. rst-class:: classref-item-separator
  77. ----
  78. .. _class_AnimationNodeTransition_method_is_input_set_as_auto_advance:
  79. .. rst-class:: classref-method
  80. :ref:`bool<class_bool>` **is_input_set_as_auto_advance** **(** :ref:`int<class_int>` input **)** |const|
  81. .. container:: contribute
  82. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  83. .. rst-class:: classref-item-separator
  84. ----
  85. .. _class_AnimationNodeTransition_method_set_input_as_auto_advance:
  86. .. rst-class:: classref-method
  87. void **set_input_as_auto_advance** **(** :ref:`int<class_int>` input, :ref:`bool<class_bool>` enable **)**
  88. .. container:: contribute
  89. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  90. .. rst-class:: classref-item-separator
  91. ----
  92. .. _class_AnimationNodeTransition_method_set_input_caption:
  93. .. rst-class:: classref-method
  94. void **set_input_caption** **(** :ref:`int<class_int>` input, :ref:`String<class_String>` caption **)**
  95. .. container:: contribute
  96. There is currently no description for this method. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  97. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  98. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  99. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  100. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`