RealDocs

UBlendSpace::ComputeAxisScaleFactor

function Engine Since unknown
#include "Animation/BlendSpace.h"
Access: public Specifiers: const

Description

Computes the scale factor applied to sample playback rate on axes configured to scale animation, based on the ratio between the raw and filtered blend space position.

Caveats & Gotchas

  • Only meaningful for axes configured with 'Scale Animation' in the blend space's per-axis settings — on other axes the returned factor is effectively 1.
  • Called internally as part of the sample update/pose extraction pipeline; there's rarely a reason to call it directly outside custom blend space tooling.

Signature

float ComputeAxisScaleFactor(const FVector& BlendSpacePosition, const FVector& FilteredBlendInput) const

Parameters

Name Type Description Default
BlendSpacePosition const FVector& The raw, unfiltered blend space position.
FilteredBlendInput const FVector& The blend input after filtering/smoothing has been applied.

Return Type

float

Example

Called internally during sample update C++
// Invoked by UBlendSpace's own sample-update code; not typically called from
// gameplay code. Exposed mainly for editor tooling and custom blend space nodes.
const float ScaleFactor = BlendSpaceAsset->ComputeAxisScaleFactor(RawPosition, FilteredInput);

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.