class_animationnodeadd3.rst 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the AnimationNodeAdd3.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_AnimationNodeAdd3:
  5. AnimationNodeAdd3
  6. =================
  7. **Inherits:** :ref:`AnimationNode<class_AnimationNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Blends two of three animations additively inside of an :ref:`AnimationNodeBlendTree<class_AnimationNodeBlendTree>`.
  12. Properties
  13. ----------
  14. +-------------------------+----------------------------------------------------+
  15. | :ref:`bool<class_bool>` | :ref:`sync<class_AnimationNodeAdd3_property_sync>` |
  16. +-------------------------+----------------------------------------------------+
  17. Description
  18. -----------
  19. A resource to add to an :ref:`AnimationNodeBlendTree<class_AnimationNodeBlendTree>`. Blends two animations together additively out of three based on a value in the ``[-1.0, 1.0]`` range.
  20. This node has three inputs:
  21. - The base animation to add to
  22. - A -add animation to blend with when the blend amount is in the ``[-1.0, 0.0]`` range.
  23. - A +add animation to blend with when the blend amount is in the ``[0.0, 1.0]`` range
  24. Property Descriptions
  25. ---------------------
  26. .. _class_AnimationNodeAdd3_property_sync:
  27. - :ref:`bool<class_bool>` **sync**
  28. +----------+---------------------+
  29. | *Setter* | set_use_sync(value) |
  30. +----------+---------------------+
  31. | *Getter* | is_using_sync() |
  32. +----------+---------------------+
  33. If ``true``, sets the ``optimization`` to ``false`` when calling :ref:`AnimationNode.blend_input<class_AnimationNode_method_blend_input>`, forcing the blended animations to update every frame.