class_animationnodetransition.rst 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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 AnimationNodeTransition.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_AnimationNodeTransition:
  6. AnimationNodeTransition
  7. =======================
  8. **Inherits:** :ref:`AnimationNode<class_AnimationNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. A generic animation transition node for :ref:`AnimationTree<class_AnimationTree>`.
  10. Description
  11. -----------
  12. 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.
  13. Tutorials
  14. ---------
  15. - :doc:`../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:`int<class_int>` | :ref:`input_count<class_AnimationNodeTransition_property_input_count>` | ``0`` |
  22. +---------------------------+------------------------------------------------------------------------+---------+
  23. | :ref:`float<class_float>` | :ref:`xfade_time<class_AnimationNodeTransition_property_xfade_time>` | ``0.0`` |
  24. +---------------------------+------------------------------------------------------------------------+---------+
  25. Methods
  26. -------
  27. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`String<class_String>` | :ref:`get_input_caption<class_AnimationNodeTransition_method_get_input_caption>` **(** :ref:`int<class_int>` input **)** |const| |
  29. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | :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| |
  31. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | 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 **)** |
  33. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | void | :ref:`set_input_caption<class_AnimationNodeTransition_method_set_input_caption>` **(** :ref:`int<class_int>` input, :ref:`String<class_String>` caption **)** |
  35. +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. Property Descriptions
  37. ---------------------
  38. .. _class_AnimationNodeTransition_property_input_count:
  39. - :ref:`int<class_int>` **input_count**
  40. +-----------+---------------------------+
  41. | *Default* | ``0`` |
  42. +-----------+---------------------------+
  43. | *Setter* | set_enabled_inputs(value) |
  44. +-----------+---------------------------+
  45. | *Getter* | get_enabled_inputs() |
  46. +-----------+---------------------------+
  47. The number of available input ports for this node.
  48. ----
  49. .. _class_AnimationNodeTransition_property_xfade_time:
  50. - :ref:`float<class_float>` **xfade_time**
  51. +-----------+----------------------------+
  52. | *Default* | ``0.0`` |
  53. +-----------+----------------------------+
  54. | *Setter* | set_cross_fade_time(value) |
  55. +-----------+----------------------------+
  56. | *Getter* | get_cross_fade_time() |
  57. +-----------+----------------------------+
  58. Cross-fading time (in seconds) between each animation connected to the inputs.
  59. Method Descriptions
  60. -------------------
  61. .. _class_AnimationNodeTransition_method_get_input_caption:
  62. - :ref:`String<class_String>` **get_input_caption** **(** :ref:`int<class_int>` input **)** |const|
  63. ----
  64. .. _class_AnimationNodeTransition_method_is_input_set_as_auto_advance:
  65. - :ref:`bool<class_bool>` **is_input_set_as_auto_advance** **(** :ref:`int<class_int>` input **)** |const|
  66. ----
  67. .. _class_AnimationNodeTransition_method_set_input_as_auto_advance:
  68. - void **set_input_as_auto_advance** **(** :ref:`int<class_int>` input, :ref:`bool<class_bool>` enable **)**
  69. ----
  70. .. _class_AnimationNodeTransition_method_set_input_caption:
  71. - void **set_input_caption** **(** :ref:`int<class_int>` input, :ref:`String<class_String>` caption **)**
  72. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  73. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  74. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`