Set Target Weight Interpolation Speed in c++ ?

Hello,

In a Blendspace, is there a way to set the Target Weight Interpolation Speed through c++ ?

BlendSpaceInterpSpeed.jpg

It is defined in UBlendSpaceBase.h:


/**
* Target weight interpolation. When target samples are set, how fast you'd like to get to target. Improve target blending.
* i.e. for locomotion, if you interpolate input, when you move from left to right rapidly, you'll interpolate through forward, but if you use target weight interpolation,
* you'll skip forward, but interpolate between left to right
*/
UPROPERTY(EditAnywhere, Category = SampleInterpolation)
float TargetWeightInterpolationSpeedPerSec;

But i can’t find a way to get to it in c++.

I’m using an UAnimeSingleNodeInstance and this class doesn’t seem to give acces to the parameter nor to a BlendSpace.

Any idea ?

Thanks

Cedric

Oh cool i found the solution:


MoveBlendSpace = Cast<UBlendSpace>(BS_AnimInstance->GetCurrentAsset());
MoveBlendSpace->TargetWeightInterpolationSpeedPerSec = 5.f;

Cheers
Cedric