UBlendSpace
#include "Animation/BlendSpace.h" Description
An animation asset that blends between multiple animation sequences based on one or two float parameters (e.g. Speed and Direction for locomotion).
Caveats & Gotchas
- • BlendSpaces are evaluated inside the Anim Blueprint graph, not called directly in C++. Reference them as UPROPERTY assets and assign them to BlendSpace graph nodes.
- • For 1D blending (single axis), use UBlendSpace1D. UBlendSpace supports up to 2 axes.
- • Sample points must be distributed across the parameter range — avoid clustering samples or the interpolation will be inaccurate.
Example
Reference a BlendSpace in C++ C++
UPROPERTY(EditDefaultsOnly, Category="Animation")
UBlendSpace* LocomotionBlendSpace;
// Assign to an anim graph node in the AnimBP, or use
// USkeletalMeshComponent::SetBlendSpaceInput() variants. See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?