Navigation
API > API/Plugins > API/Plugins/UAFAnimGraph
Apply Additive Keyframe Task
This pops the top two keyframes from the VM keyframe stack, it applies an additive keyframe onto its base, and pushes back the result onto the stack. The top pose should be the additive keyframe and the second to the top the base keyframe.
| Name | FAnimNextApplyAdditiveKeyframeTask |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAFAnimGraph/Source/UAFAnimGraph/Public/EvaluationVM/Tasks/ApplyAdditiveKeyframe.h |
| Include Path | #include "EvaluationVM/Tasks/ApplyAdditiveKeyframe.h" |
Syntax
USTRUCT ()
struct FAnimNextApplyAdditiveKeyframeTask : public FAnimNextEvaluationTask
Inheritance Hierarchy
- FAnimNextEvaluationTask → FAnimNextApplyAdditiveKeyframeTask
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AlphaCurveInputIndex | int8 | EvaluationVM/Tasks/ApplyAdditiveKeyframe.h | ||
| AlphaSourceCurveName | FName | The curve to evaluate and extract the interpolation alpha between the two input keyframes. | EvaluationVM/Tasks/ApplyAdditiveKeyframe.h | |
| BlendWeight | float | How much weight between the additive identity and the additive pose to apply: lerp(identity, additive, weight) | EvaluationVM/Tasks/ApplyAdditiveKeyframe.h | |
| InputScaleBiasClampFn | TFunction< float(float)> | EvaluationVM/Tasks/ApplyAdditiveKeyframe.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GetInterpolationAlpha
(
const UE::UAF::FKeyframeState* KeyframeA, |
@TODO: Move this into shared method Compute the current alpha value for curves or return the interpolation alpha otherwise | EvaluationVM/Tasks/ApplyAdditiveKeyframe.h |
Overridden from FAnimNextEvaluationTask
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Execute
(
UE::UAF::FEvaluationVM& VM |
Task entry point. | EvaluationVM/Tasks/ApplyAdditiveKeyframe.h | |
virtual const UScriptStruct * GetStruct() |
Returns the derived type for the task. | EvaluationVM/Tasks/ApplyAdditiveKeyframe.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FAnimNextApplyAdditiveKeyframeTask Make
(
float BlendWeight |
EvaluationVM/Tasks/ApplyAdditiveKeyframe.h | ||
static FAnimNextApplyAdditiveKeyframeTask Make
(
const FName& AlphaSourceCurveName, |
EvaluationVM/Tasks/ApplyAdditiveKeyframe.h |