UAnimInstance::CopyCurveValues
#include "Animation/AnimInstance.h"
Access: public
Description
Copies all current curve values from another anim instance into this one, commonly used to share curve state between a main instance and its linked/layer instances.
Caveats & Gotchas
- • Copies the current snapshot only — it does not keep the two instances synchronized after the call, so it must be re-invoked whenever the source's curves change.
- • Not exposed to Blueprint; used internally when propagating curves between linked anim layer instances.
Signature
void CopyCurveValues(const UAnimInstance& InSourceInstance) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InSourceInstance | const UAnimInstance& | The instance to copy curve values from. | — |
Return Type
void Example
Copy curves from a source instance C++
UAnimInstance* Target = SkeletalMeshComponent->GetAnimInstance();
Target->CopyCurveValues(*SourceInstance); See Also
Tags
Version History
Introduced in: 4.14
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?