![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AnimationEvaluation.h>
Public Member Functions | |
| ~FAnimationEvaluationCache () | |
| void | MarkForEvaluation (const USkeletalMeshComponent *InSkeletalMeshComponent) |
| const FAnimationEvaluator & | GetEvaluator (USkeletalMeshComponent *InSkeletalMeshComponent) |
| const FAnimationEvaluator & | GetEvaluator (USkeletalMeshComponent *InSkeletalMeshComponent, const FAnimationEvaluationTask &InTask) |
Static Public Member Functions | |
| static FAnimationEvaluationCache & | Get () |
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.
| UE::Anim::FAnimationEvaluationCache::~FAnimationEvaluationCache | ( | ) |
|
static |
| 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.
| 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.
| void UE::Anim::FAnimationEvaluationCache::MarkForEvaluation | ( | const USkeletalMeshComponent * | InSkeletalMeshComponent | ) |
Marks the evaluator related to InSkeletalMeshComponent for evaluation.