UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Anim::FAnimationEvaluationCache Struct Reference

#include <AnimationEvaluation.h>

Public Member Functions

 ~FAnimationEvaluationCache ()
 
void MarkForEvaluation (const USkeletalMeshComponent *InSkeletalMeshComponent)
 
const FAnimationEvaluatorGetEvaluator (USkeletalMeshComponent *InSkeletalMeshComponent)
 
const FAnimationEvaluatorGetEvaluator (USkeletalMeshComponent *InSkeletalMeshComponent, const FAnimationEvaluationTask &InTask)
 

Static Public Member Functions

static FAnimationEvaluationCacheGet ()
 

Detailed Description

FAnimationEvaluationCache provides a cache mechanism connecting skeletal mesh component and its animation evaluator to avoid multiplying FAnimationEvaluator instances when they all refer to the same skeletal mesh component. The animation evaluator is built lazily and dirtied manually on demand that the next call to GetEvaluator actually evaluates the animation if needed.

Constructor & Destructor Documentation

◆ ~FAnimationEvaluationCache()

UE::Anim::FAnimationEvaluationCache::~FAnimationEvaluationCache ( )

Member Function Documentation

◆ Get()

FAnimationEvaluationCache & UE::Anim::FAnimationEvaluationCache::Get ( )
static

◆ GetEvaluator() [1/2]

const FAnimationEvaluator & UE::Anim::FAnimationEvaluationCache::GetEvaluator ( USkeletalMeshComponent *  InSkeletalMeshComponent)

Returns and up-to-date evaluator to be queried. Note that calling this function will actually evaluate the animation if the evaluator has been previously dirtied.

◆ GetEvaluator() [2/2]

const FAnimationEvaluator & UE::Anim::FAnimationEvaluationCache::GetEvaluator ( USkeletalMeshComponent *  InSkeletalMeshComponent,
const FAnimationEvaluationTask InTask 
)

Returns and up-to-date evaluator to be queried and adds the post-evaluation task if it has not already been added. Note that calling this function will actually evaluate the animation and the post-evaluation tasks if the evaluator has been previously dirtied.

◆ MarkForEvaluation()

void UE::Anim::FAnimationEvaluationCache::MarkForEvaluation ( const USkeletalMeshComponent *  InSkeletalMeshComponent)

Marks the evaluator related to InSkeletalMeshComponent for evaluation.


The documentation for this struct was generated from the following files: