Navigation
API > API/Runtime > API/Runtime/Constraints
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.
| Name | FAnimationEvaluationCache |
| Type | struct |
| Header File | /Engine/Source/Runtime/Experimental/Animation/Constraints/Public/Transform/AnimationEvaluation.h |
| Include Path | #include "Transform/AnimationEvaluation.h" |
Syntax
struct FAnimationEvaluationCache
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAnimationEvaluationCache() |
Transform/AnimationEvaluation.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FAnimationEvaluationCache() |
Transform/AnimationEvaluation.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ConstraintsNotificationHandle | FDelegateHandle | Transform/AnimationEvaluation.h | ||
| PerSkeletalMeshEvaluator | TMap< USkeletalMeshComponent *, FAnimationEvaluator > | List of connected skeletal mesh components and animation evaluators. | Transform/AnimationEvaluation.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FAnimationEvaluator & GetEvaluator
(
USkeletalMeshComponent* InSkeletalMeshComponent |
Returns and up-to-date evaluator to be queried. | Transform/AnimationEvaluation.h | |
const FAnimationEvaluator & GetEvaluator
(
USkeletalMeshComponent* InSkeletalMeshComponent, |
Returns and up-to-date evaluator to be queried and adds the post-evaluation task if it has not already been added. | Transform/AnimationEvaluation.h | |
void MarkForEvaluation
(
const USkeletalMeshComponent* InSkeletalMeshComponent |
Marks the evaluator related to InSkeletalMeshComponent for evaluation. | Transform/AnimationEvaluation.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FAnimationEvaluationCache & Get() |
Transform/AnimationEvaluation.h |