BlendTreeNode
protocol · iOS 15.0+ · SDK 27.1
protocol BlendTreeNodeAn interface for a node that's a member of a blend tree. This protocol specifies the common functionality for the animations that compose a ``BlendTreeAnimation``. The animation defines a ``BlendTreeAnimation/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 ``BlendTreeBlendNode/sources``. - ``BlendTreeSourceNode``, which defines an animation to blend with its ``BlendTreeSourceNode/source`` property. - Note: A node in the tree may be of type ``BlendTreeInvalidNode``, which neither specifies a list of sources nor an animation. Each node type supplies a name and weight, which you can set during or after initialization. ```swift let animation1 = FromToByAnimation(...) let blendNode = BlendTreeSourceNode( source: animation1, name: "Anim1", weight: .value(0.25)) ```
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
No declarations were skipped in this snapshot.