Professional Documents
Culture Documents
Inherits: AnimationRootNode < AnimationNode < Resource < RefCounted < Object
Description¶
A resource used by AnimationNodeBlendTree.
You can set the extents of the axis with min_space and max_space.
Tutorials¶
Using AnimationTree
Properties¶
BlendMode blend_mode 0
float max_space 1.0
float min_space -1.0
float snap 0.1
bool sync false
String value_label "value"
Methods¶
add_blend_point ( AnimationRootNode node, float pos, int
void
at_index=-1 )
int get_blend_point_count ( ) const
AnimationRootNode get_blend_point_node ( int point ) const
float get_blend_point_position ( int point ) const
void remove_blend_point ( int point )
void set_blend_point_node ( int point, AnimationRootNode node )
void set_blend_point_position ( int point, float pos )
Enumerations¶
enum BlendMode:
BlendMode BLEND_MODE_INTERPOLATED = 0
BlendMode BLEND_MODE_DISCRETE = 1
The blend space plays the animation of the animation node which blending position is
closest to. Useful for frame-by-frame 2D animations.
BlendMode BLEND_MODE_DISCRETE_CARRY = 2
Property Descriptions¶
BlendMode blend_mode = 0
The blend space's axis's upper limit for the points' position. See add_blend_point.
The blend space's axis's lower limit for the points' position. See add_blend_point.
If false, the blended animations' frame are stopped when the blend value is 0.
Method Descriptions¶
void add_blend_point ( AnimationRootNode node, float pos, int at_index=-1 )
Adds a new point that represents a node on the virtual axis at a given position set by
pos. You can insert it at a specific index using the at_index argument. If you use the
default value for at_index, the point is inserted at the end of the blend points array.
Updates the position of the point at index point on the blend axis.