RealDocs

UAnimInstance::ParallelUpdateAnimation

function Engine Since 4.11
#include "Animation/AnimInstance.h"
Access: public Specifiers: virtual

Description

Called on a worker thread to perform animation graph update work in parallel with the game thread. Override to run thread-safe animation logic without blocking the game thread. Only called when parallel animation evaluation is enabled.

Caveats & Gotchas

  • Runs on a worker thread — all code must be fully thread-safe. Do not access UObjects, spawn actors, modify game state, or call any function not marked BlueprintThreadSafe.
  • The game thread may be running simultaneously. Any data read here must have been set during the prior game-thread UpdateAnimation call and must not be written to by other threads.

Signature

virtual void ParallelUpdateAnimation();

Return Type

void

Example

Thread-safe custom update logic C++
void UMyAnimInstance::ParallelUpdateAnimation()
{
    Super::ParallelUpdateAnimation();
    // Thread-safe math only — no UObject access
    SmoothedSpeed = FMath::FInterpTo(SmoothedSpeed, TargetSpeed, GetDeltaSeconds(), 5.0f);
}

Version History

Introduced in: 4.11

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.