UAnimInstance::GetAnimationCurveList
#include "Animation/AnimInstance.h"
Access: public
Specifiers: const
Description
Returns a reference to the internal map of curve name/value pairs matching the given curve type.
Caveats & Gotchas
- • There is also a deprecated two-argument overload, GetAnimationCurveList(Type, OutMap), marked deprecated since 4.19 in favor of AppendAnimationCurveList — use this single-argument, non-deprecated overload instead.
- • Returns a reference into the instance's internal state; it becomes invalid once the instance's curves are next updated, so copy the map if you need to hold on to the values.
Signature
const TMap<FName, float>& GetAnimationCurveList(EAnimCurveType Type) const Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Type | EAnimCurveType | Which curve flag category to return (e.g. material, morph target). | — |
Return Type
const TMap<FName, float>& Example
Read morph target curves directly C++
const TMap<FName, float>& MorphCurves = AnimInstance->GetAnimationCurveList(EAnimCurveType::MorphTargetCurve);
for (const TPair<FName, float>& Pair : MorphCurves)
{
UE_LOG(LogTemp, Log, TEXT("%s = %f"), *Pair.Key.ToString(), Pair.Value);
} Tags
Version History
Introduced in: 4.19
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?