FAnimNode_PoseHandler

Evaluates a point in an anim sequence, using a specific time input rather than advancing time internally.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

AnimGraphRuntime

Header

/Engine/Source/Runtime/AnimGraphRuntime/Public/AnimNodes/AnimNode_PoseHandler.h

Include

#include "AnimNodes/AnimNode_PoseHandler.h"

Syntax

struct FAnimNode_PoseHandler : public FAnimNode_AssetPlayerBase

Remarks

Evaluates a point in an anim sequence, using a specific time input rather than advancing time internally. Typically the playback position of the animation for this node will represent something other than time, like jump height. This node will not trigger any notifies present in the associated sequence.

Variables

Name Description

Protected variable

TArray< float >

 

BoneBlendWeights

Weight to blend pose per joint - has to be cached whenever cache bones for LOD

Protected variable

TWeakObjectPtr<...

 

CurrentPoseAsset

Public variable

TObjectPtr< UPo...

 

PoseAsset

The animation sequence asset to evaluate.

Protected variable

FAnimExtractCon...

 

PoseExtractContext

Constructors

Name Description

Public function

FAnimNode_PoseHandler()

Functions

Name Description

Protected function

void

 

CacheBoneBlendWeights

(
    FAnimInstanceProxy* InstancePr...
)

Cache bone blend weights - called when pose asset changes

Protected function Virtual

void

 

OnPoseAssetChange()

Called after CurrentPoseAsset is changed.

Protected function Virtual

void

 

RebuildPoseList

(
    const FBoneContainer& InBoneContai...,
    const UPoseAsset* InPoseAsset
)

Rebuild pose list

Public function

void

 

SetPoseAsset

(
    UPoseAsset* InPoseAsset
)

Set the pose asset to use for this node.

Overridden from FAnimNode_AssetPlayerBase

Name Description

Public function Virtual Const

float

 

GetAccumulatedTime()

Get the currently referenced time within the asset player node

Public function Virtual Const

UAnimationAs...

 

GetAnimAsset()

Get the animation asset associated with the node, derived classes should implement this

Public function Virtual Const

float

 

GetCurrentAssetLength()

Functions to report data to getters, this is required for all asset players (but can't be pure abstract because of struct instantiation generated code).

Public function Virtual Const

float

 

GetCurrentAssetTime()

Public function Virtual

void

 

SetAccumulatedTime

(
    float NewTime
)

Override the currently accumulated time

Public function Virtual

void

 

UpdateAssetPlayer

(
    const FAnimationUpdateContext& Con...
)

Update method for the asset player, to be implemented by derived classes

Overridden from FAnimNode_Base

Name Description

Public function Virtual

void

 

CacheBones_AnyThread

(
    const FAnimationCacheBonesContext&...
)

Called to cache any bones that this node needs to track (e.g. in a FBoneReference).

Public function Virtual

void

 

GatherDebugData

(
    FNodeDebugData& DebugData
)

Called to gather on-screen debug data. This is called on the game thread.

Public function Virtual

void

 

Initialize_AnyThread

(
    const FAnimationInitializeContext&...
)

Initialize function for setup purposes