Contents

BlendTreeNode

An interface for a node that’s a member of a blend tree.

Declaration

protocol BlendTreeNode

Overview

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:

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))

Topics

Configuring the blend tree node

Blending animations

See Also

Blend trees