BlendTreeNode
An interface for a node that’s a member of a blend tree.
Declaration
protocol BlendTreeNodeOverview
This protocol specifies the common functionality for the animations that compose a BlendTreeAnimation. The animation defines a root node of this type. To define the tree, you assign the root node one of the follow structures that adopt this protocol:
BlendTreeBlendNode, which branches the tree for every element in sources.
BlendTreeSourceNode, which defines an animation to blend with its source property.
Each node type supplies a name and weight, which you can set during or after initialization.
let animation1 = FromToByAnimation(...)
let blendNode = BlendTreeSourceNode(
source: animation1,
name: "Anim1",
weight: .value(0.25))