AnimationNodeBlendSpace1D.xml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="AnimationNodeBlendSpace1D" inherits="AnimationRootNode" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. Blends linearly between two of any number of [AnimationNode] of any type placed on a virtual axis.
  5. </brief_description>
  6. <description>
  7. A resource to add to an [AnimationNodeBlendTree].
  8. This is a virtual axis on which you can add any type of [AnimationNode] using [method add_blend_point].
  9. Outputs the linear blend of the two [AnimationNode]s closest to the node's current value.
  10. You can set the extents of the axis using the [member min_space] and [member max_space].
  11. </description>
  12. <tutorials>
  13. <link>$DOCS_URL/tutorials/animation/animation_tree.html</link>
  14. </tutorials>
  15. <methods>
  16. <method name="add_blend_point">
  17. <return type="void" />
  18. <argument index="0" name="node" type="AnimationRootNode" />
  19. <argument index="1" name="pos" type="float" />
  20. <argument index="2" name="at_index" type="int" default="-1" />
  21. <description>
  22. Adds a new point that represents a [code]node[/code] on the virtual axis at a given position set by [code]pos[/code]. You can insert it at a specific index using the [code]at_index[/code] argument. If you use the default value for [code]at_index[/code], the point is inserted at the end of the blend points array.
  23. </description>
  24. </method>
  25. <method name="get_blend_point_count" qualifiers="const">
  26. <return type="int" />
  27. <description>
  28. Returns the number of points on the blend axis.
  29. </description>
  30. </method>
  31. <method name="get_blend_point_node" qualifiers="const">
  32. <return type="AnimationRootNode" />
  33. <argument index="0" name="point" type="int" />
  34. <description>
  35. Returns the [AnimationNode] referenced by the point at index [code]point[/code].
  36. </description>
  37. </method>
  38. <method name="get_blend_point_position" qualifiers="const">
  39. <return type="float" />
  40. <argument index="0" name="point" type="int" />
  41. <description>
  42. Returns the position of the point at index [code]point[/code].
  43. </description>
  44. </method>
  45. <method name="remove_blend_point">
  46. <return type="void" />
  47. <argument index="0" name="point" type="int" />
  48. <description>
  49. Removes the point at index [code]point[/code] from the blend axis.
  50. </description>
  51. </method>
  52. <method name="set_blend_point_node">
  53. <return type="void" />
  54. <argument index="0" name="point" type="int" />
  55. <argument index="1" name="node" type="AnimationRootNode" />
  56. <description>
  57. Changes the [AnimationNode] referenced by the point at index [code]point[/code].
  58. </description>
  59. </method>
  60. <method name="set_blend_point_position">
  61. <return type="void" />
  62. <argument index="0" name="point" type="int" />
  63. <argument index="1" name="pos" type="float" />
  64. <description>
  65. Updates the position of the point at index [code]point[/code] on the blend axis.
  66. </description>
  67. </method>
  68. </methods>
  69. <members>
  70. <member name="max_space" type="float" setter="set_max_space" getter="get_max_space" default="1.0">
  71. The blend space's axis's upper limit for the points' position. See [method add_blend_point].
  72. </member>
  73. <member name="min_space" type="float" setter="set_min_space" getter="get_min_space" default="-1.0">
  74. The blend space's axis's lower limit for the points' position. See [method add_blend_point].
  75. </member>
  76. <member name="snap" type="float" setter="set_snap" getter="get_snap" default="0.1">
  77. Position increment to snap to when moving a point on the axis.
  78. </member>
  79. <member name="value_label" type="String" setter="set_value_label" getter="get_value_label" default="&quot;value&quot;">
  80. Label of the virtual axis of the blend space.
  81. </member>
  82. </members>
  83. <constants>
  84. </constants>
  85. </class>