engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 友元 | 所有成员列表
FAnimNode_Base结构体 参考

This is the base of all runtime animation nodes 更多...

#include <AnimNodeBase.h>

+ 类 FAnimNode_Base 继承关系图:

Public 成员函数

virtual void CacheBones_AnyThread (const FAnimationCacheBonesContext &Context)
 Called to cache any bones that this node needs to track (e.g. 更多...
 
virtual bool CanUpdateInWorkerThread () const
 Whether this node can run its Update() call on a worker thread. 更多...
 
virtual void Evaluate_AnyThread (FPoseContext &Output)
 Called to evaluate local-space bones transforms according to the weights set up in Update(). 更多...
 
virtual void EvaluateComponentSpace_AnyThread (FComponentSpacePoseContext &Output)
 Called to evaluate component-space bone transforms according to the weights set up in Update(). 更多...
 
virtual void GatherDebugData (FNodeDebugData &DebugData)
 Called to gather on-screen debug data. 更多...
 
virtual bool HasPreUpdate () const
 Override this to indicate that PreUpdate() should be called on the game thread (usually to gather non-thread safe data) before Update() is called. 更多...
 
virtual void Initialize (const FAnimationInitializeContext &Context)
 Deprecated functions
 
virtual void Initialize_AnyThread (const FAnimationInitializeContext &Context)
 Called when the node first runs. 更多...
 
virtual bool NeedsDynamicReset () const
 For nodes that implement some kind of simulation, return true here so ResetDynamics() gets called when things like teleports, time skips etc. 更多...
 
virtual bool NeedsOnInitializeAnimInstance () const
 For nodes that need some kind of initialization that is not dependent on node relevancy (i.e. 更多...
 
virtual void OnUpdatesSkipped (TArrayView< const FAnimationUpdateContext * > SkippedUpdateContexts)
 Called on a tracked ancestor node when there are Update() calls that were skipped due to pose caching. 更多...
 
virtual void OverrideAsset (class 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. 更多...
 
virtual void PostCompile (const class USkeleton *InSkeleton)
 Called after compilation
 
virtual void PreUpdate (const UAnimInstance *InAnimInstance)
 Override this to perform game-thread work prior to non-game thread Update() being called
 
virtual void ResetDynamics (ETeleportType InTeleportType)
 Called to help dynamics-based updates to recover correctly from large movements/teleports
 
virtual void Update_AnyThread (const FAnimationUpdateContext &Context)
 Called to update the state of the graph relative to this node. 更多...
 
virtual bool WantsSkippedUpdates () const
 Override this if your node uses ancestor tracking and wants to be informed of Update() calls that were skipped due to pose caching.
 

Protected 成员函数

bool IsLODEnabled (FAnimInstanceProxy *AnimInstanceProxy)
 return true if enabled, otherwise, return false. 更多...
 
virtual void OnInitializeAnimInstance (const FAnimInstanceProxy *InProxy, const UAnimInstance *InAnimInstance)
 Called once, from game thread as the parent anim instance is created
 
virtual void RootInitialize (const FAnimInstanceProxy *InProxy)
 Deprecated function
 

友元

struct FAnimInstanceProxy
 

详细描述

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

成员函数说明

◆ CacheBones_AnyThread()

virtual void FAnimNode_Base::CacheBones_AnyThread ( const FAnimationCacheBonesContext &  Context)
virtual

Called to cache any bones that this node needs to track (e.g.

in a FBoneReference). This is usually called at startup when LOD switches occur. This can be called on any thread.

参数
ContextContext structure providing access to relevant data

被 FAnimNode_AimOffsetLookAt, FAnimNode_CopyPoseFromMesh, FAnimNode_CurveSource, FAnimNode_ModifyCurve, FAnimNode_PoseDriver, FAnimNode_ScaleChainLength, FAnimNode_SpringBone, FAnimNode_TwistCorrectiveNode , 以及 FAnimNode_TransitionPoseEvaluator 重载.

◆ CanUpdateInWorkerThread()

virtual bool FAnimNode_Base::CanUpdateInWorkerThread ( ) const
inlinevirtual

Whether this node can run its Update() call on a worker thread.

This is called on the game thread. If any node in a graph returns false from this function, then ALL nodes will update on the game thread.

◆ Evaluate_AnyThread()

virtual void FAnimNode_Base::Evaluate_AnyThread ( FPoseContext &  Output)
virtual

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

You should implement either Evaluate or EvaluateComponentSpace, but not both of these. This can be called on any thread.

参数
OutputOutput structure to write pose or curve data to. Also provides access to relevant data as a context.

被 FAnimNode_AimOffsetLookAt, FAnimNode_CopyPoseFromMesh, FAnimNode_CurveSource, FAnimNode_ModifyCurve, FAnimNode_PoseDriver, FAnimNode_PoseSnapshot, FAnimNode_ScaleChainLength, FAnimNode_TransitionPoseEvaluator , 以及 FAnimNode_SingleNode 重载.

◆ EvaluateComponentSpace_AnyThread()

virtual void FAnimNode_Base::EvaluateComponentSpace_AnyThread ( FComponentSpacePoseContext &  Output)
virtual

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

You should implement either Evaluate or EvaluateComponentSpace, but not both of these. This can be called on any thread.

参数
OutputOutput structure to write pose or curve data to. Also provides access to relevant data as a context.

◆ GatherDebugData()

virtual void FAnimNode_Base::GatherDebugData ( FNodeDebugData &  DebugData)
inlinevirtual

◆ HasPreUpdate()

virtual bool FAnimNode_Base::HasPreUpdate ( ) const
inlinevirtual

Override this to indicate that PreUpdate() should be called on the game thread (usually to gather non-thread safe data) before Update() is called.

Note that this is called at load on the UAnimInstance CDO to avoid needing to call this at runtime. This is called on the game thread.

被 FAnimNode_CopyPoseFromMesh, FAnimNode_CurveSource, FAnimNode_PoseSnapshot, FAnimNode_RigidBody, FAnimNode_SpringBone , 以及 FAnimNode_CustomProperty 重载.

◆ Initialize_AnyThread()

virtual void FAnimNode_Base::Initialize_AnyThread ( const FAnimationInitializeContext &  Context)
virtual

Called when the node first runs.

If the node is inside a state machine or cached pose branch then this can be called multiple times. This can be called on any thread.

参数
ContextContext structure providing access to relevant data

被 FAnimNode_AimOffsetLookAt, FAnimNode_CopyPoseFromMesh, FAnimNode_CurveSource, FAnimNode_ModifyCurve, FAnimNode_PoseDriver, FAnimNode_Fabrik, FAnimNode_LookAt, FAnimNode_ScaleChainLength, FAnimNode_SpringBone, FAnimNode_Trail, FAnimNode_TwistCorrectiveNode, FAnimNode_TwoBoneIK , 以及 FAnimNode_TransitionPoseEvaluator 重载.

◆ IsLODEnabled()

bool FAnimNode_Base::IsLODEnabled ( FAnimInstanceProxy *  AnimInstanceProxy)
protected

return true if enabled, otherwise, return false.

This is utility function that can be used per node level

◆ NeedsDynamicReset()

virtual bool FAnimNode_Base::NeedsDynamicReset ( ) const
inlinevirtual

For nodes that implement some kind of simulation, return true here so ResetDynamics() gets called when things like teleports, time skips etc.

occur that might require special handling. Note that this is called at load on the UAnimInstance CDO to avoid needing to call this at runtime. This is called on the game thread.

被 FAnimNode_RigidBody 重载.

◆ NeedsOnInitializeAnimInstance()

virtual bool FAnimNode_Base::NeedsOnInitializeAnimInstance ( ) const
inlinevirtual

For nodes that need some kind of initialization that is not dependent on node relevancy (i.e.

it is insufficent or inefficent to use Initialize_AnyThread), return true here. Note that this is called at load on the UAnimInstance CDO to avoid needing to call this at runtime.

被 FAnimNode_AimOffsetLookAt , 以及 FAnimNode_RigidBody 重载.

◆ OnUpdatesSkipped()

virtual void FAnimNode_Base::OnUpdatesSkipped ( TArrayView< const FAnimationUpdateContext * >  SkippedUpdateContexts)
inlinevirtual

Called on a tracked ancestor node when there are Update() calls that were skipped due to pose caching.

Your node must implement WantsSkippedUpdates to receive this callback.

◆ OverrideAsset()

virtual void FAnimNode_Base::OverrideAsset ( class UAnimationAsset *  NewAsset)
inlinevirtual

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.

参数
NewAssetThe new asset that is being set

◆ Update_AnyThread()

virtual void FAnimNode_Base::Update_AnyThread ( const FAnimationUpdateContext &  Context)
virtual

Called to update the state of the graph relative to this node.

Generally this should configure any weights (etc.) that could affect the poses that will need to be evaluated. This function is what usually executes EvaluateGraphExposedInputs. This can be called on any thread.

参数
ContextContext structure providing access to relevant data

被 FAnimNode_CopyPoseFromMesh, FAnimNode_CurveSource, FAnimNode_ModifyCurve, FAnimNode_PoseSnapshot, FAnimNode_ScaleChainLength, FAnimNode_TransitionPoseEvaluator , 以及 FAnimNode_SingleNode 重载.


该结构体的文档由以下文件生成: