Navigation
API > API/Runtime > API/Runtime/Engine
This file contains a number of helper structures that can be used to process state-machine- related data in C++. This includes relevancy, state weights, animation time etc.
| Name | FCachedAnimStateData |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Animation/CachedAnimData.h |
| Include Path | #include "Animation/CachedAnimData.h" |
Syntax
USTRUCT (BlueprintType )
struct FCachedAnimStateData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCachedAnimStateData() |
Animation/CachedAnimData.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| StateMachineName | FName | Name of StateMachine State is in | Animation/CachedAnimData.h |
|
| StateName | FName | Name of State to Cache | Animation/CachedAnimData.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bInitialized | bool | Animation/CachedAnimData.h | ||
| MachineIndex | int32 | Animation/CachedAnimData.h | ||
| StateIndex | int32 | Animation/CachedAnimData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GetGlobalWeight
(
UAnimInstance& InAnimInstance |
Global weight of state in AnimGraph | Animation/CachedAnimData.h | |
float GetWeight
(
UAnimInstance& InAnimInstance |
Local weight of state inside of state machine. | Animation/CachedAnimData.h | |
bool IsActiveState
(
UAnimInstance& InAnimInstance |
Is State active? | Animation/CachedAnimData.h | |
bool IsFullWeight
(
UAnimInstance& InAnimInstance |
Is State Full Weight? | Animation/CachedAnimData.h | |
float IsMachineRelevant
(
UAnimInstance& InAnimInstance |
Is the State Machine relevant? (Has any weight) | Animation/CachedAnimData.h | |
bool IsRelevant
(
UAnimInstance& InAnimInstance |
Is State relevant? | Animation/CachedAnimData.h | |
bool IsValid
(
UAnimInstance& InAnimInstance |
Did it find a matching StateMachine and State in the AnimGraph? | Animation/CachedAnimData.h | |
bool WasAnimNotifyStateActive
(
UAnimInstance& InAnimInstance, |
Animation/CachedAnimData.h |