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
|
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.
| Context | Context structure providing access to relevant data |
被 FAnimNode_AimOffsetLookAt, FAnimNode_CopyPoseFromMesh, FAnimNode_CurveSource, FAnimNode_ModifyCurve, FAnimNode_PoseDriver, FAnimNode_ScaleChainLength, FAnimNode_SpringBone, FAnimNode_TwistCorrectiveNode , 以及 FAnimNode_TransitionPoseEvaluator 重载.
|
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.
|
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.
| Output | Output 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 重载.
|
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.
| Output | Output structure to write pose or curve data to. Also provides access to relevant data as a context. |
|
inlinevirtual |
Called to gather on-screen debug data.
This is called on the game thread.
| DebugData | Debug data structure used to output any relevant data |
被 FAnimNode_AimOffsetLookAt, FAnimNode_CopyPoseFromMesh, FAnimNode_CurveSource, FAnimNode_PoseDriver, FAnimNode_PoseSnapshot, FAnimNode_BoneDrivenController, FAnimNode_CCDIK, FAnimNode_Constraint, FAnimNode_CopyBone, FAnimNode_CopyBoneDelta, FAnimNode_Fabrik, FAnimNode_HandIKRetargeting, FAnimNode_LookAt, FAnimNode_ModifyBone, FAnimNode_ObserveBone, FAnimNode_RigidBody, FAnimNode_RotationMultiplier, FAnimNode_ScaleChainLength, FAnimNode_SpringBone, FAnimNode_Trail, FAnimNode_TwistCorrectiveNode, FAnimNode_TwoBoneIK , 以及 FAnimNode_TransitionPoseEvaluator 重载.
|
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 重载.
|
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.
| Context | Context 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 重载.
|
protected |
return true if enabled, otherwise, return false.
This is utility function that can be used per node level
|
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 重载.
|
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 重载.
|
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.
|
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.
| NewAsset | The new asset that is being set |
|
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.
| Context | Context structure providing access to relevant data |
被 FAnimNode_CopyPoseFromMesh, FAnimNode_CurveSource, FAnimNode_ModifyCurve, FAnimNode_PoseSnapshot, FAnimNode_ScaleChainLength, FAnimNode_TransitionPoseEvaluator , 以及 FAnimNode_SingleNode 重载.