class_animationnodetransition.rst 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. Description
  12. -----------
  13. 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.
  14. Tutorials
  15. ---------
  16. - :doc:`AnimationTree <../tutorials/animation/animation_tree>`
  17. - `3D Platformer Demo <https://godotengine.org/asset-library/asset/125>`__
  18. - `Third Person Shooter Demo <https://godotengine.org/asset-library/asset/678>`__
  19. Properties
  20. ----------
  21. +---------------------------+------------------------------------------------------------------------+----------+
  22. | :ref:`bool<class_bool>` | :ref:`from_start<class_AnimationNodeTransition_property_from_start>` | ``true`` |
  23. +---------------------------+------------------------------------------------------------------------+----------+
  24. | :ref:`int<class_int>` | :ref:`input_count<class_AnimationNodeTransition_property_input_count>` | ``0`` |
  25. +---------------------------+------------------------------------------------------------------------+----------+
  26. | :ref:`float<class_float>` | :ref:`xfade_time<class_AnimationNodeTransition_property_xfade_time>` | ``0.0`` |
  27. +---------------------------+------------------------------------------------------------------------+----------+
  28. Methods
  29. -------
  30. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`String<class_String>` | :ref:`get_input_caption<class_AnimationNodeTransition_method_get_input_caption>` **(** :ref:`int<class_int>` input **)** |const| |
  32. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :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| |
  34. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | 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 **)** |
  36. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | void | :ref:`set_input_caption<class_AnimationNodeTransition_method_set_input_caption>` **(** :ref:`int<class_int>` input, :ref:`String<class_String>` caption **)** |
  38. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. Property Descriptions
  40. ---------------------
  41. .. _class_AnimationNodeTransition_property_from_start:
  42. - :ref:`bool<class_bool>` **from_start**
  43. +-----------+-----------------------+
  44. | *Default* | ``true`` |
  45. +-----------+-----------------------+
  46. | *Setter* | set_from_start(value) |
  47. +-----------+-----------------------+
  48. | *Getter* | is_from_start() |
  49. +-----------+-----------------------+
  50. If ``true``, the destination animation is played back from the beginning when switched.
  51. ----
  52. .. _class_AnimationNodeTransition_property_input_count:
  53. - :ref:`int<class_int>` **input_count**
  54. +-----------+---------------------------+
  55. | *Default* | ``0`` |
  56. +-----------+---------------------------+
  57. | *Setter* | set_enabled_inputs(value) |
  58. +-----------+---------------------------+
  59. | *Getter* | get_enabled_inputs() |
  60. +-----------+---------------------------+
  61. The number of available input ports for this node.
  62. ----
  63. .. _class_AnimationNodeTransition_property_xfade_time:
  64. - :ref:`float<class_float>` **xfade_time**
  65. +-----------+----------------------------+
  66. | *Default* | ``0.0`` |
  67. +-----------+----------------------------+
  68. | *Setter* | set_cross_fade_time(value) |
  69. +-----------+----------------------------+
  70. | *Getter* | get_cross_fade_time() |
  71. +-----------+----------------------------+
  72. Cross-fading time (in seconds) between each animation connected to the inputs.
  73. Method Descriptions
  74. -------------------
  75. .. _class_AnimationNodeTransition_method_get_input_caption:
  76. - :ref:`String<class_String>` **get_input_caption** **(** :ref:`int<class_int>` input **)** |const|
  77. ----
  78. .. _class_AnimationNodeTransition_method_is_input_set_as_auto_advance:
  79. - :ref:`bool<class_bool>` **is_input_set_as_auto_advance** **(** :ref:`int<class_int>` input **)** |const|
  80. ----
  81. .. _class_AnimationNodeTransition_method_set_input_as_auto_advance:
  82. - void **set_input_as_auto_advance** **(** :ref:`int<class_int>` input, :ref:`bool<class_bool>` enable **)**
  83. ----
  84. .. _class_AnimationNodeTransition_method_set_input_caption:
  85. - void **set_input_caption** **(** :ref:`int<class_int>` input, :ref:`String<class_String>` caption **)**
  86. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  87. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  88. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  89. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  90. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  91. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`