UBlendSpace::FilterInput
#include "Animation/BlendSpace.h"
Access: public
Specifiers: const
Description
Smooths a raw blend input over time using the given filter's InterpolationParam settings, returning the filtered position to sample with.
Caveats & Gotchas
- • Filter must have been set up via InitializeFilter first — calling this on a default-constructed FBlendFilter produces incorrect smoothing.
- • Must be called every tick with a consistent Filter instance; skipping ticks or swapping filters mid-stream breaks the smoothing continuity.
Signature
ENGINE_API FVector FilterInput(FBlendFilter* Filter, const FVector& BlendInput, float DeltaTime) const; Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Filter | FBlendFilter* | Filter previously set up with InitializeFilter. | — |
| BlendInput | const FVector& | Raw, unfiltered blend input for this tick. | — |
| DeltaTime | float | Time since the last filter update, used to scale the smoothing. | — |
Return Type
FVector Example
Filter then sample per tick C++
const FVector FilteredInput = MyBlendSpace->FilterInput(&Filter, RawBlendInput, DeltaTime);
TArray<FBlendSampleData> SampleDataList;
int32 CachedIndex = INDEX_NONE;
MyBlendSpace->GetSamplesFromBlendInput(FilteredInput, SampleDataList, CachedIndex, true); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?