Path: blob/master/doc/classes/AnimationNodeBlendSpace1D.xml
10277 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="AnimationNodeBlendSpace1D" inherits="AnimationRootNode" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">2<brief_description>3A set of [AnimationRootNode]s placed on a virtual axis, crossfading between the two adjacent ones. Used by [AnimationTree].4</brief_description>5<description>6A resource used by [AnimationNodeBlendTree].7[AnimationNodeBlendSpace1D] represents a virtual axis on which any type of [AnimationRootNode]s can be added using [method add_blend_point]. Outputs the linear blend of the two [AnimationRootNode]s adjacent to the current value.8You can set the extents of the axis with [member min_space] and [member max_space].9</description>10<tutorials>11<link title="Using AnimationTree">$DOCS_URL/tutorials/animation/animation_tree.html</link>12</tutorials>13<methods>14<method name="add_blend_point">15<return type="void" />16<param index="0" name="node" type="AnimationRootNode" />17<param index="1" name="pos" type="float" />18<param index="2" name="at_index" type="int" default="-1" />19<description>20Adds a new point that represents a [param node] on the virtual axis at a given position set by [param pos]. You can insert it at a specific index using the [param at_index] argument. If you use the default value for [param at_index], the point is inserted at the end of the blend points array.21</description>22</method>23<method name="get_blend_point_count" qualifiers="const">24<return type="int" />25<description>26Returns the number of points on the blend axis.27</description>28</method>29<method name="get_blend_point_node" qualifiers="const">30<return type="AnimationRootNode" />31<param index="0" name="point" type="int" />32<description>33Returns the [AnimationNode] referenced by the point at index [param point].34</description>35</method>36<method name="get_blend_point_position" qualifiers="const">37<return type="float" />38<param index="0" name="point" type="int" />39<description>40Returns the position of the point at index [param point].41</description>42</method>43<method name="remove_blend_point">44<return type="void" />45<param index="0" name="point" type="int" />46<description>47Removes the point at index [param point] from the blend axis.48</description>49</method>50<method name="set_blend_point_node">51<return type="void" />52<param index="0" name="point" type="int" />53<param index="1" name="node" type="AnimationRootNode" />54<description>55Changes the [AnimationNode] referenced by the point at index [param point].56</description>57</method>58<method name="set_blend_point_position">59<return type="void" />60<param index="0" name="point" type="int" />61<param index="1" name="pos" type="float" />62<description>63Updates the position of the point at index [param point] on the blend axis.64</description>65</method>66</methods>67<members>68<member name="blend_mode" type="int" setter="set_blend_mode" getter="get_blend_mode" enum="AnimationNodeBlendSpace1D.BlendMode" default="0">69Controls the interpolation between animations.70</member>71<member name="max_space" type="float" setter="set_max_space" getter="get_max_space" default="1.0">72The blend space's axis's upper limit for the points' position. See [method add_blend_point].73</member>74<member name="min_space" type="float" setter="set_min_space" getter="get_min_space" default="-1.0">75The blend space's axis's lower limit for the points' position. See [method add_blend_point].76</member>77<member name="snap" type="float" setter="set_snap" getter="get_snap" default="0.1">78Position increment to snap to when moving a point on the axis.79</member>80<member name="sync" type="bool" setter="set_use_sync" getter="is_using_sync" default="false">81If [code]false[/code], the blended animations' frame are stopped when the blend value is [code]0[/code].82If [code]true[/code], forcing the blended animations to advance frame.83</member>84<member name="value_label" type="String" setter="set_value_label" getter="get_value_label" default=""value"">85Label of the virtual axis of the blend space.86</member>87</members>88<constants>89<constant name="BLEND_MODE_INTERPOLATED" value="0" enum="BlendMode">90The interpolation between animations is linear.91</constant>92<constant name="BLEND_MODE_DISCRETE" value="1" enum="BlendMode">93The blend space plays the animation of the animation node which blending position is closest to. Useful for frame-by-frame 2D animations.94</constant>95<constant name="BLEND_MODE_DISCRETE_CARRY" value="2" enum="BlendMode">96Similar to [constant BLEND_MODE_DISCRETE], but starts the new animation at the last animation's playback position.97</constant>98</constants>99</class>100101102