UAnimInstance::PreEvaluateAnimation
#include "Animation/AnimInstance.h"
Access: public
Specifiers: virtual
Description
Called immediately before the animation graph evaluates bone transforms. Override to set up state that evaluation nodes will read, such as applying curve overrides or adjusting node parameters before they produce the final pose.
Caveats & Gotchas
- • May run on a worker thread when parallel evaluation is enabled. Ensure all logic is thread-safe if the project uses parallel anim evaluation.
- • Do not read from the output pose here — it has not been computed yet. This is a setup phase for the evaluation pass, not a post-processing hook.
Signature
virtual void PreEvaluateAnimation(); Return Type
void Example
Apply curve override before evaluation C++
void UMyAnimInstance::PreEvaluateAnimation()
{
Super::PreEvaluateAnimation();
if (bOverrideHandIK)
{
OverrideCurveValue(FName("HandIK_Weight"), DesiredHandIKWeight);
}
} Tags
Version History
Introduced in: 4.11
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?