Documentation ¶
Overview ¶
Package AnimationNodeBlendSpace1D provides methods for working with AnimationNodeBlendSpace1D object instances.
Index ¶
- type Advanced
- type Any
- type BlendMode
- type Instance
- func (self Instance) AddBlendPoint(node [1]gdclass.AnimationRootNode, pos Float.X)
- func (self Instance) AsAnimationNode() AnimationNode.Instance
- func (self Instance) AsAnimationNodeBlendSpace1D() Instance
- func (self Instance) AsAnimationRootNode() AnimationRootNode.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) BlendMode() gdclass.AnimationNodeBlendSpace1DBlendMode
- func (self Instance) GetBlendPointCount() int
- func (self Instance) GetBlendPointNode(point int) [1]gdclass.AnimationRootNode
- func (self Instance) GetBlendPointPosition(point int) Float.X
- func (self Instance) MaxSpace() Float.X
- func (self Instance) MinSpace() Float.X
- func (self Instance) RemoveBlendPoint(point int)
- func (self Instance) SetBlendMode(value gdclass.AnimationNodeBlendSpace1DBlendMode)
- func (self Instance) SetBlendPointNode(point int, node [1]gdclass.AnimationRootNode)
- func (self Instance) SetBlendPointPosition(point int, pos Float.X)
- func (self Instance) SetMaxSpace(value Float.X)
- func (self Instance) SetMinSpace(value Float.X)
- func (self Instance) SetSnap(value Float.X)
- func (self Instance) SetSync(value bool)
- func (self Instance) SetValueLabel(value string)
- func (self Instance) Snap() Float.X
- func (self Instance) Sync() bool
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) ValueLabel() string
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type BlendMode ¶
type BlendMode = gdclass.AnimationNodeBlendSpace1DBlendMode //gd:AnimationNodeBlendSpace1D.BlendMode
const ( /*The interpolation between animations is linear.*/ BlendModeInterpolated BlendMode = 0 /*The blend space plays the animation of the animation node which blending position is closest to. Useful for frame-by-frame 2D animations.*/ BlendModeDiscrete BlendMode = 1 /*Similar to [constant BLEND_MODE_DISCRETE], but starts the new animation at the last animation's playback position.*/ BlendModeDiscreteCarry BlendMode = 2 )
type Instance ¶
type Instance [1]gdclass.AnimationNodeBlendSpace1D
A resource used by [AnimationNodeBlendTree]. [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. You can set the extents of the axis with [member min_space] and [member max_space].
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AddBlendPoint ¶
func (self Instance) AddBlendPoint(node [1]gdclass.AnimationRootNode, pos Float.X)
Adds 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.
func (Instance) AsAnimationNode ¶
func (self Instance) AsAnimationNode() AnimationNode.Instance
func (Instance) AsAnimationNodeBlendSpace1D ¶
func (Instance) AsAnimationRootNode ¶
func (self Instance) AsAnimationRootNode() AnimationRootNode.Instance
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) BlendMode ¶
func (self Instance) BlendMode() gdclass.AnimationNodeBlendSpace1DBlendMode
func (Instance) GetBlendPointCount ¶
Returns the number of points on the blend axis.
func (Instance) GetBlendPointNode ¶
func (self Instance) GetBlendPointNode(point int) [1]gdclass.AnimationRootNode
Returns the [AnimationNode] referenced by the point at index [param point].
func (Instance) GetBlendPointPosition ¶
Returns the position of the point at index [param point].
func (Instance) RemoveBlendPoint ¶
Removes the point at index [param point] from the blend axis.
func (Instance) SetBlendMode ¶
func (self Instance) SetBlendMode(value gdclass.AnimationNodeBlendSpace1DBlendMode)
func (Instance) SetBlendPointNode ¶
func (self Instance) SetBlendPointNode(point int, node [1]gdclass.AnimationRootNode)
Changes the [AnimationNode] referenced by the point at index [param point].
func (Instance) SetBlendPointPosition ¶
Updates the position of the point at index [param point] on the blend axis.