:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the AnimationNodeTransition.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_AnimationNodeTransition: AnimationNodeTransition ======================= **Inherits:** :ref:`AnimationNode` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` A generic animation transition node for :ref:`AnimationTree`. Description ----------- Simple state machine for cases which don't require a more advanced :ref:`AnimationNodeStateMachine`. Animations can be connected to the inputs and transition times can be specified. Tutorials --------- - :doc:`../tutorials/animation/animation_tree` Properties ---------- +---------------------------+------------------------------------------------------------------------+---------+ | :ref:`int` | :ref:`input_count` | ``0`` | +---------------------------+------------------------------------------------------------------------+---------+ | :ref:`float` | :ref:`xfade_time` | ``0.0`` | +---------------------------+------------------------------------------------------------------------+---------+ Methods ------- +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_input_caption` **(** :ref:`int` input **)** const | +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_input_set_as_auto_advance` **(** :ref:`int` input **)** const | +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_input_as_auto_advance` **(** :ref:`int` input, :ref:`bool` enable **)** | +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_input_caption` **(** :ref:`int` input, :ref:`String` caption **)** | +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Property Descriptions --------------------- .. _class_AnimationNodeTransition_property_input_count: - :ref:`int` **input_count** +-----------+---------------------------+ | *Default* | ``0`` | +-----------+---------------------------+ | *Setter* | set_enabled_inputs(value) | +-----------+---------------------------+ | *Getter* | get_enabled_inputs() | +-----------+---------------------------+ The number of available input ports for this node. ---- .. _class_AnimationNodeTransition_property_xfade_time: - :ref:`float` **xfade_time** +-----------+----------------------------+ | *Default* | ``0.0`` | +-----------+----------------------------+ | *Setter* | set_cross_fade_time(value) | +-----------+----------------------------+ | *Getter* | get_cross_fade_time() | +-----------+----------------------------+ Cross-fading time (in seconds) between each animation connected to the inputs. Method Descriptions ------------------- .. _class_AnimationNodeTransition_method_get_input_caption: - :ref:`String` **get_input_caption** **(** :ref:`int` input **)** const ---- .. _class_AnimationNodeTransition_method_is_input_set_as_auto_advance: - :ref:`bool` **is_input_set_as_auto_advance** **(** :ref:`int` input **)** const ---- .. _class_AnimationNodeTransition_method_set_input_as_auto_advance: - void **set_input_as_auto_advance** **(** :ref:`int` input, :ref:`bool` enable **)** ---- .. _class_AnimationNodeTransition_method_set_input_caption: - void **set_input_caption** **(** :ref:`int` input, :ref:`String` caption **)**