UAnimInstance::GetAllCurveNames
#include "Animation/AnimInstance.h"
Access: public
Specifiers: UFUNCTIONBlueprintPureBlueprintThreadSafe
Description
Populates OutNames with the names of all currently active attribute curves. Equivalent to calling GetActiveCurveNames with EAnimCurveType::AttributeCurve.
Caveats & Gotchas
- • Only returns attribute-type curves — not morph target curves or material curves. Use GetActiveCurveNames with the appropriate EAnimCurveType if you need those.
- • Returns results from the last evaluation pass. On the very first tick or when no animations are active, the array will be empty.
Signature
ENGINE_API void GetAllCurveNames(TArray<FName>& OutNames) const; Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| OutNames | TArray<FName>& | Receives the names of all active attribute curves. | — |
Return Type
void Example
Enumerating all attribute curves at runtime C++
TArray<FName> CurveNames;
GetAllCurveNames(CurveNames);
for (const FName& Name : CurveNames)
{
float Val = 0.0f;
GetCurveValue(Name, Val);
UE_LOG(LogTemp, Verbose, TEXT("Curve %s = %.3f"), *Name.ToString(), Val);
} Tags
Version History
Introduced in: 4.14
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?