UBlendSpace::InitializeFilter
#include "Animation/BlendSpace.h"
Access: public
Specifiers: const
Description
Sets up runtime filtering state for smoothing blend input, using this blend space's InterpolationParam settings.
Caveats & Gotchas
- • Must be called once before the filter is used with FilterInput/UpdateFilterParams — using an uninitialized FBlendFilter produces garbage smoothing results.
- • Called internally by the anim graph's blend space node; you only need this when driving a blend space manually outside the normal asset player pipeline.
Signature
ENGINE_API void InitializeFilter(FBlendFilter* Filter, int NumDimensions = 2) const; Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Filter | FBlendFilter* | Filter struct to initialize in place. | — |
| NumDimensions | int | Number of blend axes to filter (defaults to 2 since 3D blend spaces don't currently exist). | 2 |
Return Type
void Example
Manual filter setup C++
FBlendFilter Filter;
MyBlendSpace->InitializeFilter(&Filter);
// later, each tick:
FVector Filtered = MyBlendSpace->FilterInput(&Filter, RawBlendInput, DeltaTime); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?