RealDocs

UAnimInstance::AppendAnimationCurveList

function Engine Since 4.19
#include "Animation/AnimInstance.h"
Access: public Specifiers: const

Description

Appends the current curve values matching the given curve type into the caller-supplied map, adding to whatever entries already exist.

Caveats & Gotchas

  • Appends rather than replaces — call on a freshly cleared map if you don't want values from a previous call mixed in.
  • Replaced the deprecated GetAnimationCurveList(Type, OutMap) overload; prefer this function when accumulating curves from multiple sources.

Signature

void AppendAnimationCurveList(EAnimCurveType Type, TMap<FName, float>& InOutCurveList) const

Parameters

Name Type Description Default
Type EAnimCurveType Which curve flag category to append (e.g. material, morph target).
InOutCurveList TMap<FName, float>& Map that curve name/value pairs of the requested type are added into.

Return Type

void

Example

Collect all material curves C++
TMap<FName, float> MaterialCurves;
AnimInstance->AppendAnimationCurveList(EAnimCurveType::MaterialCurve, MaterialCurves);
for (const TPair<FName, float>& Pair : MaterialCurves)
{
    UE_LOG(LogTemp, Log, TEXT("%s = %f"), *Pair.Key.ToString(), Pair.Value);
}

Version History

Introduced in: 4.19

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.