SkeletonResource.BlendMask
Describes a single blend mask for selective animation control.
Declaration
struct BlendMaskOverview
Blend masks enable selective application of animations by defining per-joint weights. They allow fine-grained control over which parts of a skeleton are affected by specific animations, enabling layered animation systems and partial poses.
typealias BlendMask = SkeletonResource.BlendMask
// Create blend masks for different body regions
// Joints not listed default to weight 1.0 (full animation effect)
let armOnlyMask = BlendMask(
name: "armOnly",
jointWeights: ["shoulder": 0.0] // Only affect upperArm, forearm, hand
)
let handOnlyMask = BlendMask(
name: "handOnly",
jointWeights: ["shoulder": 0.0, "upperArm": 0.0, "forearm": 0.0] // Only affect hand
)