FAnimNode_BlendSpacePlayer

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

AnimGraphRuntime

Header

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

Include

#include "AnimNodes/AnimNode_BlendSpacePlayer.h"

Syntax

struct FAnimNode_BlendSpacePlayer : public FAnimNode_AssetPlayerBase

Variables

Name Description

Protected variable

FBlendFilter

 

BlendFilter

Protected variable

TArray< FBlendS...

 

BlendSampleDataCache

Public variable

UBlendSpaceBase...

 

BlendSpace

The blendspace asset to play.

Public variable

bool

 

bLoop

Should the animation continue looping when it reaches the end?

Public variable

bool

 

bResetPlayTimeWhenBlendSpaceChanges

Whether we should reset the current play time when the blend space changes.

Public variable

float

 

PlayRate

The play rate multiplier. Can be negative, which will cause the animation to play in reverse.

Protected variable

UBlendSpaceBase...

 

PreviousBlendSpace

Public variable

float

 

StartPosition

The start up position in [0, 1], it only applies when reinitialized if you loop, it will still start from 0.f after finishing the round

Public variable

float

 

X

The X coordinate to sample in the blendspace.

Public variable

float

 

Y

The Y coordinate to sample in the blendspace.

Public variable

float

 

Z

The Z coordinate to sample in the blendspace.

Constructors

Name Description

Public function

FAnimNode_BlendSpacePlayer()

Functions

Name Description

Public function

float

 

GetTimeFromEnd

(
    float CurrentTime
)

Protected function

void

 

UpdateInternal

(
    const FAnimationUpdateContext& Con...
)

Overridden from FAnimNode_AssetPlayerBase

Name Description

Public function Virtual

UAnimationAs...

 

GetAnimAsset()

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

Public function Virtual

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

float

 

GetCurrentAssetTime()

Public function Virtual

float

 

GetCurrentAssetTimePlayRateAdjusted()

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

 

Evaluate_AnyThread

(
    FPoseContext& Output
)

Called to evaluate local-space bones transforms according to the weights set up in Update().

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

Public function Virtual

void

 

OverrideAsset

(
    UAnimationAsset* NewAsset
)

If a derived anim node should respond to asset overrides, OverrideAsset should be defined to handle changing the asset This is called during anim blueprint compilation to handle child anim blueprints.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss