Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
BlendMode
AnimationNodeBlendSpace1D.swift:18enum BlendMode
Cases
case interpolated
The interpolation between animations is linear.
case discrete
The blend space plays the animation of the animation node which blending position is closest to. Useful for frame-by-frame 2D animations.
case discreteCarry
Similar to .discrete, but starts the new animation at the last animation’s playback position.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (14) members.
Type members
Instance members
var blendMode: AnimationNodeBlendSpace1D.BlendMode
Controls the interpolation between animations. See
BlendMode
constants.var maxSpace: Double
The blend space’s axis’s upper limit for the points’ position. See
addBlendPoint(node:pos:atIndex:)
.var minSpace: Double
The blend space’s axis’s lower limit for the points’ position. See
addBlendPoint(node:pos:atIndex:)
.var snap: Double
Position increment to snap to when moving a point on the axis.
var sync: Bool
If
false
, the blended animations’ frame are stopped when the blend value is0
.var valueLabel: String
Label of the virtual axis of the blend space.
func addBlendPoint(node: AnimationRootNode?, pos: Double, atIndex: Int32
) Adds a new point that represents a
node
on the virtual axis at a given position set bypos
. You can insert it at a specific index using theatIndex
argument. If you use the default value foratIndex
, the point is inserted at the end of the blend points array.func getBlendPointCount(
) -> Int32 Returns the number of points on the blend axis.
func getBlendPointNode(point: Int32
) -> AnimationRootNode? Returns the
AnimationNode
referenced by the point at indexpoint
.func getBlendPointPosition(point: Int32
) -> Double Returns the position of the point at index
point
.func removeBlendPoint(Int32
) Removes the point at index
point
from the blend axis.func setBlendPointNode(point: Int32, node: AnimationRootNode?
) Changes the
AnimationNode
referenced by the point at indexpoint
.func setBlendPointPosition(point: Int32, pos: Double
) Updates the position of the point at index
point
on the blend axis.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.