Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Animation/AnimNodeBase.h |
Include |
#include "Animation/AnimNodeBase.h" |
struct FAnimNode_Base
This is the base of all runtime animation nodes
To create a new animation node: Create a struct derived from FAnimNode_Base - this is your runtime node Create a class derived from UAnimGraphNode_Base, containing an instance of your runtime node as a member - this is your visual/editor-only node
Name | Description | |
---|---|---|
|
~FAnimNode_Base() |
Name | Description | ||
---|---|---|---|
|
CacheBones_AnyThread ( |
Called to cache any bones that this node needs to track (e.g. in a FBoneReference). |
|
|
CanUpdateInWorkerThread() |
Whether this node can run its Update() call on a worker thread. |
|
|
Evaluate_AnyThread ( |
Called to evaluate local-space bones transforms according to the weights set up in Update(). |
|
|
EvaluateComponentSpace_AnyThread ( |
Called to evaluate component-space bone transforms according to the weights set up in Update(). |
|
|
GatherDebugData ( |
Called to gather on-screen debug data. This is called on the game thread. |
|
|
const IAnimC... |
GetAnimClassInterface() |
Get the anim class that this node is hosted within. |
|
const DataTy... |
GetData ( |
Get anim node constant/folded data of the specified type given the identifier. Do not use directly - use GET_ANIM_NODE_DATA. |
|
const FExpos... |
GetEvaluateGraphExposedInputs() |
The default handler for graph-exposed inputs: |
|
DataType ... |
GetInstanceDataPtr ( |
Get anim node mutable data of the specified type given the identifier. |
|
GetLODThreshold() |
Get the LOD threshold at which this node is enabled. |
|
|
DataType & |
GetMutableData ( |
Get anim node constant/folded data of the specified type given the identifier. Do not use directly - use GET_MUTABLE_ANIM_NODE_DATA. |
|
GetNodeIndex() |
Get this node's index. The node index provides a unique key into its location within the class data. |
|
|
HasPreUpdate() |
Override this to indicate that PreUpdate() should be called on the game thread (usually to gather non-thread safe data) before Update() is called. |
|
|
Initialize_AnyThread ( |
Called when the node first runs. |
|
|
IsLODEnabled ( |
Return true if enabled, otherwise, return false. |
|
|
NeedsDynamicReset() |
For nodes that implement some kind of simulation, return true here so ResetDynamics() gets called when things like teleports, time skips etc. |
|
|
NeedsOnInitializeAnimInstance() |
For nodes that need some kind of initialization that is not dependent on node relevancy (i.e. it is insufficient or inefficient to use Initialize_AnyThread), return true here. |
|
|
OnInitializeAnimInstance ( |
Called once, from game thread as the parent anim instance is created |
|
|
PostCompile ( |
Called after compilation |
|
|
PreUpdate ( |
Override this to perform game-thread work prior to non-game thread Update() being called |
|
|
ResetDynamics ( |
Called to help dynamics-based updates to recover correctly from large movements/teleports |
|
|
Update_AnyThread ( |
Called to update the state of the graph relative to this node. |
Name | Description | ||
---|---|---|---|
|
CacheBones ( |
Please use CacheBones_AnyThread instead |
|
|
Evaluate ( |
Please use Evaluate_AnyThread instead |
|
|
EvaluateComponentSpace ( |
Please use EvaluateComponentSpace_AnyThread instead |
|
|
Initialize ( |
Please use Initialize_AnyThread instead |
|
|
OnUpdatesSkipped ( |
Please use IGraphMessage instead |
|
|
OverrideAsset ( |
Please use the OverrideAssets API on UAnimGraphNode_Base to opt-in to child anim BP override functionality, or per-node specific asset override calls. |
|
|
ResetDynamics() |
Please use ResetDynamics with an ETeleportPhysics flag instead |
|
|
RootInitialize ( |
Please use OnInitializeAnimInstance instead |
|
|
SetExposedValueHandler ( |
Exposed value handlers are now accessed via FAnimNodeConstantData |
|
|
Update ( |
Please use Update_AnyThread instead |
|
|
WantsSkippedUpdates() |
Please use IGraphMessage instead |