Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UAnimInstance
- UAnimPreviewAttacheInstance
- UAnimSequencerInstance
- UAnimSharingAdditiveInstance
- UAnimSharingStateInstance
- UAnimSharingTransitionInstance
- UAnimSingleNodeInstance
- UAnimPreviewInstance
- UIKRetargetAnimInstance
- UIKRigAnimInstance
- UControlRigAnimInstance
- UControlRigLayerInstance
- ULiveLinkInstance
- UVehicleAnimationInstance
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Animation/AnimInstance.h |
| Include | #include "Animation/AnimInstance.h" |
Syntax
class UAnimInstance : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FAnimNotifyEventReference > | ActiveAnimNotifyEventReference | ||
| TArray< FAnimNotifyEvent > | ActiveAnimNotifyState | Currently Active AnimNotifyState, stored as a copy of the event as we need to call NotifyEnd on the event after a deletion in the editor. | |
| TMap< class UAnimMontage *, struct FAnimMontageInstance * > | ActiveMontagesMap | Map between Active Montages and their FAnimMontageInstance | |
| FAnimInstanceProxy * | AnimInstanceProxy | Proxy object, nothing should access this from an externally-callable API as it is used as a scratch area on worker threads | |
| uint8: 1 | bCreatedByLinkedAnimGraph | Flag to check if created by LinkedAnimGraph in ReinitializeLinkedAnimInstance | |
| uint8: 1 | bNeedsUpdate | Flag to check back on the game thread that indicates we need to run PostUpdateAnimation() in the post-eval call | |
| uint8: 1 | bPropagateNotifiesToLinkedInstances | Whether to propagate notifies to any linked anim instances | |
| uint8: 1 | bReceiveNotifiesFromLinkedInstances | Whether to process notifies from any linked anim instances | |
| uint8: 1 | bUseMainInstanceMontageEvaluationData | If true, linked instances will use the main instance's montage data. | |
| uint8: 1 | bUseMultiThreadedAnimationUpdate | Allows this anim instance to update its native update, blend tree, montages and asset players on a worker thread. | |
| uint8: 1 | bUsingCopyPoseFromMesh | If this AnimInstance has nodes using 'CopyPoseFromMesh' this will be true. | |
| double | CurrentLifeTimerScrubPosition | Current scrubbing playback position (only used when debugging in Persona) | |
| TObjectPtr< USkeleton > | CurrentSkeleton | This is used to extract animation. If Mesh exists, this will be overwritten by Mesh->Skeleton | |
| FGraphTraversalCounter | DebugDataCounter | ||
| double | LifeTimer | Maximum playback position ever reached (only used when debugging in Persona) | |
| TArray< struct FAnimMontageInstance * > | MontageInstances | AnimMontage instances that are running currently | |
| FAnimNotifyQueue | NotifyQueue | Animation Notifies that has been triggered in the latest tick | |
| FOnAllMontageInstancesEndedMCDelegate | OnAllMontageInstancesEnded | Called when all Montage instances have ended. | |
| FOnMontageBlendingOutStartedMCDelegate | OnMontageBlendingOut | Called when a montage starts blending out, whether interrupted or finished | |
| FOnMontageEndedMCDelegate | OnMontageEnded | Called when a montage has ended, whether interrupted or finished | |
| FOnMontageStartedMCDelegate | OnMontageStarted | Called when a montage has started | |
| FPlayMontageAnimNotifyDelegate | OnPlayMontageNotifyBegin | Called when a montage hits a 'PlayMontageNotify' or 'PlayMontageNotifyWindow' begin | |
| FPlayMontageAnimNotifyDelegate | OnPlayMontageNotifyEnd | Called when a montage hits a 'PlayMontageNotify' or 'PlayMontageNotifyWindow' end | |
| ETeleportType | PendingDynamicResetTeleportType | Pending teleport type, set in ResetDynamics and cleared in UpdateAnimation | |
| FSoftClassPath | PostCompileValidationClassName | Name of Class to do Post Compile Validation. | |
| TEnumAsByte< ERootMotionMode::Type > | RootMotionMode | Sets where this blueprint pulls Root Motion from. | |
| TMap< FName, UE::Anim::FSlotInertializationRequest > | SlotGroupInertializationRequestMap | Inertialization requests gathered this frame. Gets reset in UpdateMontageEvaluationData |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAnimInstance
(
const FObjectInitializer& ObjectInitializer |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | Disable compiler-generated deprecation warnings by implementing our own destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddCurveValue
(
const FName& CurveName, |
Add curve float data, using a curve name. | |
| void | AddExternalNotifyHandler
(
UObject* ExternalHandlerObject, |
Allows other UObjects to bind custom event notifies similarly to the AnimBP | |
| void | AddNativeStateEntryBinding
(
const FName& MachineName, |
Sets up a native state entry delegate from state with StateName, in the state machine with name MachineName. | |
| void | AddNativeStateExitBinding
(
const FName& MachineName, |
Sets up a native state exit delegate from state with StateName, in the state machine with name MachineName. | |
| void | AddNativeTransitionBinding
(
const FName& MachineName, |
Sets up a native transition delegate between states with PrevStateName and NextStateName, in the state machine with name MachineName. | |
| FPoseSnapshot & | AddPoseSnapshot
(
FName SnapshotName |
Add an empty pose snapshot to the internal snapshot cache (or recycle an existing pose snapshot if the name is already in use) | |
| void | AddReferencedObjects
(
UObject* InThis, |
||
| void | AppendAnimationCurveList
(
EAnimCurveType Type, |
Append the type of curve to the OutCurveList specified by Curve Flags | |
| void | ApplyAnimOverridesToCDO
(
FCompilerResultsLog& MessageLog |
Called on the newly created CDO during anim blueprint compilation to allow subclasses a chance to replace animations (experimental) | |
| float | Blueprint_GetSlotMontageLocalWeight
(
FName SlotNodeName |
Get local weight of any montages this slot node is playing. | |
| void | Executed when begin play is called on the owning component | ||
| void | Executed when the Animation is initialized | ||
| void | Executed when the all Linked Animation Layers are initialized | ||
| void | Executed after the Animation is evaluated | ||
| void | BlueprintThreadSafeUpdateAnimation
(
float DeltaTime |
Executed when the Animation Blueprint is updated on a worker thread, just prior to graph update | |
| void | BlueprintUpdateAnimation
(
float DeltaTimeX |
Executed when the Animation is updated | |
| float | CalcSlotMontageLocalWeight
(
const FName& SlotNodeName |
Get local weight of any montages this slot is playing. | |
| bool | Can this animation instance run Update or Evaluation work in parallel. | ||
| bool | |||
| void | Removes all queued transition requests | ||
| void | ClearMontageInstanceReferences
(
FAnimMontageInstance& InMontageInstance |
||
| void | Clears the current morph targets. | ||
| void | ClearTransitionEvents
(
const FName EventName |
Removes all queued transition requests with the given event name | |
| FRootMotionMovementParams | ConsumeExtractedRootMotion
(
float Alpha |
Get current accumulated root motion, removing it from the AnimInstance in the process | |
| void | CopyCurveValues
(
const UAnimInstance& InSourceInstance |
Copy curves from external source | |
| FAnimInstanceProxy * | Override point for derived classes to create their own proxy objects (allows custom allocation) | ||
| void | DestroyAnimInstanceProxy
(
FAnimInstanceProxy* InProxy |
Override point for derived classes to destroy their own proxy objects (allows custom allocation) | |
| void | Dispatch AnimEvents (AnimNotifies, Montage Events) queued during UpdateAnimation() | ||
| void | DisplayDebug
(
UCanvas* Canvas, |
Debug output for this anim instance. Info for SyncGroups, Graph, Montages, etc. | |
| void | DisplayDebugInstance
(
FDisplayDebugManager& DisplayDebugManager, |
Display debug info about AnimInstance. Can be overridden to add custom info from child classes. | |
| void | Triggers end on active notify states and clears the array | ||
| FAnimSubsystemInstance * | FindSubsystem
(
UScriptStruct* InSubsystemType |
Find a subsystem's instance-resident data. | |
| SubsystemType * | Get a subsystem's instance-resident data. If no subsystem of the type exists this will return nullptr. | ||
| void | GatherDebugData
(
FNodeDebugData& DebugData |
Gather debug data from this instance proxy and the blend tree for display | |
| void | GetActiveCurveNames
(
EAnimCurveType CurveType, |
This returns last up-to-date list of active curve names | |
| FAnimMontageInstance * | GetActiveInstanceForMontage
(
const UAnimMontage* Montage |
Get Active FAnimMontageInstance for given Montage asset. | |
| FAnimMontageInstance * | Get Currently active montage instance. | ||
| void | GetAllCurveNames
(
TArray< FName >& OutNames |
This returns all curve names. | |
| const TMap< FName, float > & | GetAnimationCurveList
(
EAnimCurveType Type |
Return the list of curves that are specified by type | |
| const TMap< FName, float > & | GetAnimationCurves
(
EAnimCurveType InCurveType |
Get the current value of all animation curves | |
| UAnimMontage * | Get a current Active Montage in this AnimInstance. | ||
| FName | GetCurrentStateName
(
int32 MachineIndex |
Returns the name of a currently active state in a state machine. | |
| bool | GetCurveValue
(
FName CurveName, |
Returns value of named curved in OutValue, returns whether the curve was actually found or not. | |
| float | GetCurveValue
(
FName CurveName |
Returns the value of a named curve. | |
| bool | GetCurveValueWithDefault
(
FName CurveName, |
Returns whether a named curve was found, its value, and a default value when it's not found. | |
| float | Get the current delta time | ||
| int32 | GetInstanceAssetPlayerIndex
(
FName MachineName, |
Get the index of the specified instance asset player. | |
| float | GetInstanceAssetPlayerLength
(
int32 AssetPlayerIndex |
NOTE: Derived anim getters | |
| TArray< const FAnimNode_AssetPlayerBase * > | GetInstanceAssetPlayers
(
const FName& GraphName |
Returns all Animation Nodes of FAnimNode_AssetPlayerBase class within the specified (named) Animation Graph | |
| float | GetInstanceAssetPlayerTime
(
int32 AssetPlayerIndex |
Get the current accumulated time in seconds for an asset player node | |
| float | GetInstanceAssetPlayerTimeFraction
(
int32 AssetPlayerIndex |
Get the current accumulated time as a fraction for an asset player node | |
| float | GetInstanceAssetPlayerTimeFromEnd
(
int32 AssetPlayerIndex |
Get the time in seconds from the end of an animation in an asset player node | |
| float | GetInstanceAssetPlayerTimeFromEndFraction
(
int32 AssetPlayerIndex |
Get the time as a fraction of the asset length of an animation in an asset player node | |
| float | GetInstanceCurrentStateElapsedTime
(
int32 MachineIndex |
Get the current elapsed time of a state within the specified state machine | |
| float | GetInstanceMachineWeight
(
int32 MachineIndex |
Get the blend weight of a specified state machine | |
| TArray< const FAnimNode_AssetPlayerRelevancyBase * > | GetInstanceRelevantAssetPlayers
(
const FName& GraphName |
Returns all Animation Nodes implementing FAnimNode_AssetPlayerRelevancyBase within the specified (named) Animation Graph | |
| float | GetInstanceStateWeight
(
int32 MachineIndex, |
Get the blend weight of a specified state | |
| float | GetInstanceTransitionCrossfadeDuration
(
int32 MachineIndex, |
Get the crossfade duration of a specified transition | |
| float | GetInstanceTransitionTimeElapsed
(
int32 MachineIndex, |
Get the elapsed time in seconds of a specified transition | |
| float | GetInstanceTransitionTimeElapsedFraction
(
int32 MachineIndex, |
Get the elapsed time as a fraction of the crossfade duration of a specified transition | |
| UAnimInstance * | GetLinkedAnimGraphInstanceByTag
(
FName InTag |
Runs through all nodes, attempting to find the first linked instance by name/tag | |
| UAnimInstance * | GetLinkedAnimLayerInstanceByClass
(
TSubclassOf< UAnimInstance > InClass |
Gets the first layer linked instance corresponding to the specified class | |
| UAnimInstance * | GetLinkedAnimLayerInstanceByGroup
(
FName InGroup |
Gets the layer linked instance corresponding to the specified group | |
| UAnimInstance * | GetLinkedAnimLayerInstanceByGroupAndClass
(
FName InGroup, |
Gets layer linked instance that matches group and class | |
| void | GetLinkedAnimLayerInstancesByGroup
(
FName InGroup, |
Runs through all nodes, attempting to find all distinct layer linked instances in the group | |
| FAnimNode_LinkedInputPose * | GetLinkedInputPoseNode
(
FName InSubInput, |
Get a linked input pose node by name, given a named graph. | |
| int32 | GetLODLevel () |
Get the 'animation' LOD level, which by default is the PredictedLODLevel of this anim instance's skeletal mesh component. | |
| const FBakedAnimationStateMachine * | GetMachineDescription
(
IAnimClassInterface* AnimBlueprintClass, |
Get the machine description for the specified instance. | |
| FAnimMontageInstance * | GetMontageInstanceForID
(
int32 MontageInstanceID |
Get the FAnimMontageInstance currently running that matches this ID. | |
| TArray< FAnimNode_AssetPlayerBase * > | GetMutableInstanceAssetPlayers
(
const FName& GraphName |
Returns all Animation Nodes of FAnimNode_AssetPlayerBase class within the specified (named) Animation Graph | |
| TArray< FAnimNode_AssetPlayerRelevancyBase * > | GetMutableInstanceRelevantAssetPlayers
(
const FName& GraphName |
Returns all Animation Nodes of FAnimNode_AssetPlayerRelevancyBase class within the specified (named) Animation Graph | |
| AActor * | Returns the owning actor of this AnimInstance | ||
| USkeletalMeshComponent * | Returns the skeletal mesh component that has created this AnimInstance. | ||
| const FPoseSnapshot * | GetPoseSnapshot
(
FName SnapshotName |
Get a cached pose snapshot by name | |
| bool | Get whether to propagate notifies to any linked anim instances | ||
| T & | Access the proxy but block if a task is currently in progress (and we are on the game thread) as it wouldn't be safe to access it | ||
| const T & | Access the proxy but block if a task is currently in progress (and we are on the game thread) as it wouldn't be safe to access it | ||
| T & | Access the proxy but block if a task is currently in progress as it wouldn't be safe to access it | ||
| const T & | Access the proxy but block if a task is currently in progress as it wouldn't be safe to access it | ||
| T * | GetProxyOnGameThreadStatic
(
UAnimInstance* InAnimInstance |
Access the proxy but block if a task is currently in progress as it wouldn't be safe to access it This is protected static member for allowing derived to access | |
| bool | Get whether to process notifies from any linked anim instances | ||
| float | GetRelevantAnimLength
(
int32 MachineIndex, |
Get the length in seconds of the most relevant animation in the source state | |
| float | GetRelevantAnimTime
(
int32 MachineIndex, |
Get the current accumulated time in seconds for the most relevant animation in the source state | |
| float | GetRelevantAnimTimeFraction
(
int32 MachineIndex, |
Get the current accumulated time as a fraction of the length of the most relevant animation in the source state | |
| float | GetRelevantAnimTimeRemaining
(
int32 MachineIndex, |
Get the time remaining in seconds for the most relevant animation in the source state | |
| float | GetRelevantAnimTimeRemainingFraction
(
int32 MachineIndex, |
Get the time remaining as a fraction of the duration for the most relevant animation in the source state | |
| const FAnimNode_AssetPlayerRelevancyBase * | GetRelevantAssetPlayerInterfaceFromState
(
int32 MachineIndex, |
Gets the most relevant asset player in a specified state | |
| const FBoneContainer & | Access the required bones array | ||
| FBoneContainer & | Access the required bones array | ||
| const FBoneContainer & | Access the required bones array | ||
| FAnimMontageInstance * | Root Motion. | ||
| USkeletalMeshComponent * | |||
| float | GetSlotMontageGlobalWeight
(
const FName& SlotNodeName |
Get Global weight of any montages this slot node is playing. | |
| float | GetSlotMontageLocalWeight
(
const FName& SlotNodeName |
Get local weight of any montages this slot node is playing. | |
| float | GetSlotNodeGlobalWeight
(
const FName& SlotNodeName |
Get global weight in AnimGraph for this slot node. | |
| int32 | GetStateMachineIndex
(
FName MachineName |
Gets the index of the state machine matching MachineName | |
| void | GetStateMachineIndexAndDescription
(
FName InMachineName, |
||
| const FAnimNode_StateMachine * | GetStateMachineInstance
(
int32 MachineIndex |
Gets the runtime instance of the specified state machine | |
| const FBakedAnimationStateMachine * | GetStateMachineInstanceDesc
(
FName MachineName |
Gets the runtime instance desc of the state machine specified by name | |
| const FAnimNode_StateMachine * | GetStateMachineInstanceFromName
(
FName MachineName |
Gets the runtime instance of the specified state machine by Name | |
| SubsystemType & | GetSubsystem () |
Get a subsystem's instance-resident data. If no subsystem of the type exists this will assert. | |
| int32 | GetSyncGroupIndexFromName
(
FName SyncGroupName |
Returns the baked sync group index from the compile step | |
| const TMap< FName, FAnimGroupInstance > & | Get the sync group we are currently reading from | ||
| FMarkerSyncAnimPosition | GetSyncGroupPosition
(
FName InSyncGroupName |
||
| bool | GetTimeToClosestMarker
(
FName SyncGroup, |
||
| const TArray< FAnimTickRecord > & | Get the ungrouped active player we are currently reading from | ||
| const FGraphTraversalCounter & | Access a read only version of the Updater Counter from the AnimInstanceProxy on the GameThread. | ||
| UWorld * | GetWorld () |
||
| void | HandleExistingParallelEvaluationTask
(
USkeletalMeshComponent* Component |
||
| bool | HandleNotify
(
const FAnimNotifyEvent& AnimNotifyEvent |
Implementable custom function to handle notifies | |
| void | HandleObjectsReinstanced
(
const TMap< UObject*, UObject* >& OldToNewInstanceMap |
Helper function to handle reinstancing in editor. | |
| bool | Check whether we have any active curves | ||
| bool | HasMarkerBeenHitThisFrame
(
FName SyncGroup, |
||
| bool | Check whether we have active morph target curves | ||
| bool | HasNativeStateEntryBinding
(
const FName& MachineName, |
Check for whether a native entry delegate is bound to the specified state. | |
| bool | HasNativeStateExitBinding
(
const FName& MachineName, |
Check for whether a native exit delegate is bound to the specified state. | |
| bool | HasNativeTransitionBinding
(
const FName& MachineName, |
Check for whether a native rule is bound to the specified transition. | |
| void | InitializeAnimation
(
bool bInDeferRootNodeInitialization |
Animation phase trigger start with initialize update happens in every tick. | |
| void | InitializeGroupedLayers
(
bool bInDeferSubGraphInitialization |
Sets up initial layer groupings | |
| bool | Returns true if any montage is playing currently. | ||
| bool | Returns true if this anim instance is actively being debugged, false otherwise | ||
| bool | IsPlayingSlotAnimation
(
const UAnimSequenceBase* Asset, |
Return true if this instance playing the slot animation, also returning the montage it is playing on | |
| bool | IsPlayingSlotAnimation
(
const UAnimSequenceBase* Asset, |
Return true if it's playing the slot animation | |
| bool | Is this animation currently running post update | ||
| bool | Are we being evaluated on a worker thread. | ||
| bool | IsSkeletalMeshComponent
(
const UObject* Object |
||
| bool | IsSlotActive
(
FName SlotNodeName |
Return true if this instance has an active montage in the given slot. | |
| bool | IsSyncGroupBetweenMarkers
(
FName InSyncGroupName, |
||
| bool | Is this animation currently running update | ||
| bool | |||
| void | LinkAnimClassLayers
(
TSubclassOf< UAnimInstance > InClass |
Runs through all layer nodes, attempting to find layer nodes that are implemented by the specified class, then sets up a linked instance of the class for each. | |
| void | LinkAnimGraphByTag
(
FName InTag, |
Runs through all nodes, attempting to find a linked instance by name/tag, then sets the class of each node if the tag matches | |
| void | LockAIResources
(
bool bLockMovement, |
Locks indicated AI resources of animated pawn DEPRECATED. Use LockAIResourcesWithAnimation instead | |
| void | MakeMontageTickRecord
(
FAnimTickRecord& TickRecord, |
||
| void | Montage_Advance
(
float DeltaSeconds |
Advance montages | |
| FOnMontageBlendingOutStarted * | Montage_GetBlendingOutDelegate
(
UAnimMontage* Montage |
Get pointer to BlendingOutStarted delegate for Montage. | |
| float | Montage_GetBlendTime
(
const UAnimMontage* Montage |
Get the current blend time of the Montage. | |
| FName | Montage_GetCurrentSection
(
const UAnimMontage* Montage |
Returns the name of the current animation montage section. | |
| float | Montage_GetEffectivePlayRate
(
const UAnimMontage* Montage |
Get scaled PlayRate for Montage. | |
| FOnMontageEnded * | Montage_GetEndedDelegate
(
UAnimMontage* Montage |
Get pointer to Ended delegate for Montage. | |
| bool | Montage_GetIsStopped
(
const UAnimMontage* Montage |
Return true if Montage is not currently active. (not valid or blending out) | |
| int32 | Montage_GetNextSectionID
(
const UAnimMontage* Montage, |
Get next sectionID for given section ID | |
| float | Montage_GetPlayRate
(
const UAnimMontage* Montage |
Get PlayRate for Montage. | |
| float | Montage_GetPosition
(
const UAnimMontage* Montage |
Get Current Montage Position | |
| bool | Montage_IsActive
(
const UAnimMontage* Montage |
Returns true if the animation montage is active. | |
| bool | Montage_IsPlaying
(
const UAnimMontage* Montage |
Returns true if the animation montage is currently active and playing. | |
| void | Montage_JumpToSection
(
FName SectionName, |
Makes a montage jump to a named section. | |
| void | Montage_JumpToSectionsEnd
(
FName SectionName, |
Makes a montage jump to the end of a named section. | |
| void | Montage_Pause
(
const UAnimMontage* Montage |
Pauses the animation montage. If reference is NULL, it will pause ALL active montages. | |
| float | Montage_Play
(
UAnimMontage* MontageToPlay, |
Plays an animation montage. | |
| float | Montage_PlayInternal
(
UAnimMontage* MontageToPlay, |
||
| float | Montage_PlayWithBlendIn
(
UAnimMontage* MontageToPlay, |
Plays an animation montage. | |
| float | Montage_PlayWithBlendSettings
(
UAnimMontage* MontageToPlay, |
Plays an animation montage. | |
| void | Montage_Resume
(
const UAnimMontage* Montage |
Resumes a paused animation montage. If reference is NULL, it will resume ALL active montages. | |
| void | Montage_SetBlendingOutDelegate
(
FOnMontageBlendingOutStarted& InOnMontageBlendingOut, |
||
| void | Montage_SetEndDelegate
(
FOnMontageEnded& InOnMontageEnded, |
||
| void | Montage_SetNextSection
(
FName SectionNameToChange, |
Relink new next section AFTER SectionNameToChange in run-time You can link section order the way you like in editor, but in run-time if you'd like to change it dynamically, use this function to relink the next section For example, you can have Start->Loop->Loop->Loop.... | |
| void | Montage_SetPlayRate
(
const UAnimMontage* Montage, |
Change AnimMontage play rate. NewPlayRate = 1.0 is the default playback rate. | |
| void | Montage_SetPosition
(
const UAnimMontage* Montage, |
Set position. | |
| void | Montage_Stop
(
float InBlendOutTime, |
Stops the animation montage. | |
| void | Montage_StopGroupByName
(
float InBlendOutTime, |
Stops all active montages belonging to a group. | |
| void | Montage_StopInternal
(
TFunctionRef< FMontageBlendSettings(const FAnimMontageInstance*)> AlphaBlendSelectorFunction, |
||
| void | Montage_StopWithBlendOut
(
const FAlphaBlendArgs& BlendOut, |
Same as Montage_Stop. | |
| void | Montage_StopWithBlendSettings
(
const FMontageBlendSettings& BlendOutSettings, |
Same as Montage_Stop, but all blend settings are provided instead of using the ones on the montage asset | |
| void | Montage_UpdateWeight
(
float DeltaSeconds |
Update weight of montages | |
| void | MontageSync_Follow
(
const UAnimMontage* MontageFollower, |
Synchronize a montage to another anim instance's montage. Both montages must be playing already | |
| void | MontageSync_StopFollowing
(
const UAnimMontage* MontageFollower |
Stop following the montage's leader in this anim instance | |
| void | Executed when begin play is called on the owning component. | ||
| void | The below functions are the native overrides for each phase Native initialization override point | ||
| void | Native Post Evaluate override point. | ||
| void | NativeThreadSafeUpdateAnimation
(
float DeltaSeconds |
Native thread safe update override point. | |
| void | Native Uninitialize override point. | ||
| void | NativeUpdateAnimation
(
float DeltaSeconds |
Native update override point. | |
| bool | NeedsUpdate () |
Can does this anim instance need an update (parallel or not)? | |
| void | OnMontageInstanceStopped
(
FAnimMontageInstance& StoppedMontageInstance |
||
| void | OnUROPreInterpolation_AnyThread
(
FAnimationEvaluationContext& InOutContext |
Called before URO interpolation is performed. | |
| void | Called when skipping an animation update because of URO. | ||
| bool | ParallelCanEvaluate
(
const USkeletalMesh* InSkeletalMesh |
Check whether evaluation can be performed on the supplied skeletal mesh. | |
| void | ParallelEvaluateAnimation
(
bool bForceRefPose, |
Perform evaluation. Can be called from worker threads. | |
| void | Run update animation work on a worker thread | ||
| bool | |||
| bool | Warn if AnimNodes are not using fast path during AnimBP compilation. | ||
| UAnimMontage * | PlaySlotAnimationAsDynamicMontage
(
UAnimSequenceBase* Asset, |
Play normal animation asset on the slot node by creating a dynamic UAnimMontage. | |
| UAnimMontage * | PlaySlotAnimationAsDynamicMontage_WithBlendArgs
(
UAnimSequenceBase* Asset, |
Play normal animation asset on the slot node by creating a dynamic UAnimMontage with blend in arguments. | |
| UAnimMontage * | PlaySlotAnimationAsDynamicMontage_WithBlendSettings
(
UAnimSequenceBase* Asset, |
Play normal animation asset on the slot node by creating a dynamic UAnimMontage with blend in settings. | |
| void | |||
| void | Called after updates are completed, dispatches notifies etc. | ||
| void | Called on the game thread pre-evaluation. | ||
| void | PreUpdateAnimation
(
float DeltaSeconds |
Called to setup for updates | |
| void | PreUpdateLinkedInstances
(
float DeltaSeconds |
Called on the game thread before UpdateAnimation is called on linked instances | |
| bool | QueryAndMarkTransitionEvent
(
int32 MachineIndex, |
Behaves like QueryTransitionEvent but additionally marks the event for consumption | |
| bool | QueryTransitionEvent
(
int32 MachineIndex, |
Returns whether or not the given event transition request has been queued | |
| void | QueueMontageBlendingOutEvent
(
const FQueuedMontageBlendingOutEvent& MontageBlendingOutEvent |
Queue a Montage BlendingOut Event to be triggered. | |
| void | QueueMontageEndedEvent
(
const FQueuedMontageEndedEvent& MontageEndedEvent |
Queue a Montage Ended Event to be triggered. | |
| void | QueueRootMotionBlend
(
const FTransform& RootTransform, |
Queue blended root motion. | |
| void | Recalculate Required Bones [RequiredBones] Is called when bRequiredBonesUpToDate = false | ||
| void | RecalcRequiredCurves
(
const UE::Anim::FCurveFilterSettings& CurveFilterSettings |
Recalculate Required Curves based on Required Bones [RequiredBones] | |
| void | RecordMachineWeight
(
const int32 InMachineClassIndex, |
Given a machine index, record a state machine weight for this frame | |
| void | RecordStateWeight
(
const int32 InMachineClassIndex, |
Given a machine and state index, record a state weight for this frame | |
| void | RefreshCurves
(
USkeletalMeshComponent* Component |
Refresh currently existing curves | |
| void | RemoveExternalNotifyHandler
(
UObject* ExternalHandlerObject, |
Other UObjects should call this to remove themselves from the callbacks | |
| void | RemovePoseSnapshot
(
FName SnapshotName |
Remove a previously saved pose snapshot from the internal snapshot cache | |
| void | RequestMontageInertialization
(
const UAnimMontage* Montage, |
Builds an inertialization request from the montage's group, provided duration and optional blend profile | |
| void | RequestSlotGroupInertialization
(
FName InSlotGroupName, |
Requests an inertial blend during the next anim graph update. | |
| bool | RequestTransitionEvent
(
const FName EventName, |
Attempts to queue a transition request, returns true if the request was successful | |
| void | ResetDynamics
(
ETeleportType InTeleportType |
Reset any dynamics running simulation-style updates (e.g. on teleport, time skip etc.) | |
| void | SavePoseSnapshot
(
FName SnapshotName |
Takes a snapshot of the current skeletal mesh component pose & saves it internally. | |
| void | SetMorphTarget
(
FName MorphTargetName, |
Sets a morph target to a certain weight. | |
| void | SetPropagateNotifiesToLinkedInstances
(
bool bSet |
Set whether to propagate notifies to any linked anim instances | |
| void | SetReceiveNotifiesFromLinkedInstances
(
bool bSet |
Set whether to process notifies from any linked anim instances | |
| void | SetRootMotionMode
(
TEnumAsByte< ERootMotionMode::Type > Value |
Set RootMotionMode | |
| void | SetUseMainInstanceMontageEvaluationData
(
bool bSet |
||
| bool | Should Extract Root Motion or not. Return true if we do. | ||
| bool | ShouldTriggerAnimNotifyState
(
const UAnimNotifyState* AnimNotifyState |
Return whether this AnimNotifyState should be triggered | |
| void | SnapshotPose
(
FPoseSnapshot& Snapshot |
Takes a snapshot of the current skeletal mesh component pose and saves it to the specified snapshot. | |
| void | StopAllMontages
(
float BlendOut |
Stop all montages that are active | |
| void | StopAllMontagesByGroupName
(
FName InGroupName, |
Stop all active montages belonging to 'InGroupName' | |
| void | StopSlotAnimation
(
float InBlendOutTime, |
Stops currently playing slot animation slot or all | |
| void | SwapCurveWithEvaluationContext
(
FAnimationEvaluationContext& InOutContext |
Swap curves out for evaluation | |
| void | TriggerAnimNotifies
(
float DeltaSeconds |
Trigger AnimNotifies | |
| void | TriggerSingleAnimNotify
(
FAnimNotifyEventReference& EventReference |
Trigger an AnimNotify using an EventReference that provide context used in derived notify events | |
| void | TriggerSingleAnimNotify
(
const FAnimNotifyEvent* AnimNotifyEvent |
Trigger an AnimNotify. Note that this version does not provide any context for the event | |
| APawn * | |||
| void | |||
| void | UnlinkAnimClassLayers
(
TSubclassOf< UAnimInstance > InClass |
Runs through all layer nodes, attempting to find layer nodes that are currently running the specified class, then resets each to its default value. | |
| void | UnlockAIResources
(
bool bUnlockMovement, |
Unlocks indicated AI resources of animated pawn. | |
| void | UpdateAnimation
(
float DeltaSeconds, |
Update Animation code-paths, updates and advances animation state, returns whether or not the actual update should have been called immediately | |
| void | UpdateCurves
(
const FBlendedHeapCurve& InCurves |
Update all internal curves from Blended Curve | |
| void | Update curves once evaluation has taken place. Mostly pushes curves to materials/morphs | ||
| void | UpdateCurvesToComponents
(
USkeletalMeshComponent* Component |
Update animation curves to component | |
| void | UpdateCurvesToEvaluationContext
(
const FAnimationEvaluationContext& InOutContext |
Pushes blended heap curve to output curves in the proxy using required bones cached data | |
| void | Updates the montage data used for evaluation based on the current playing montages. | ||
| bool | Returns true if a snapshot is being played back and the remainder of Update should be skipped. | ||
| bool | WasAnimNotifyNameTriggeredInAnyState
(
FName NotifyName |
Get whether the animation notify with the specified name triggered last tick. | |
| bool | WasAnimNotifyNameTriggeredInSourceState
(
int32 MachineIndex, |
Get whether the most relevant animation triggered the animation notify with the specified name last tick.. | |
| bool | WasAnimNotifyNameTriggeredInStateMachine
(
int32 MachineIndex, |
Get whether the given state machine triggered the animation notify with the specified name last tick. | |
| bool | WasAnimNotifyStateActiveInAnyState
(
TSubclassOf< UAnimNotifyState > AnimNotifyStateType |
Get whether a particular notify state was active in any state machine last tick. | |
| bool | WasAnimNotifyStateActiveInSourceState
(
int32 MachineIndex, |
Get whether a particular notify state is active in a specific state last tick. | |
| bool | WasAnimNotifyStateActiveInStateMachine
(
int32 MachineIndex, |
Get whether a particular notify state is active in a specific state machine last tick. | |
| bool | WasAnimNotifyTriggeredInAnyState
(
TSubclassOf< UAnimNotify > AnimNotifyType |
Get whether an animation notify of a given type was triggered last tick. | |
| bool | WasAnimNotifyTriggeredInSourceState
(
int32 MachineIndex, |
Get whether the most relevant animation was in a particular notify state last tick. | |
| bool | WasAnimNotifyTriggeredInStateMachine
(
int32 MachineIndex, |
Get whether a particular notify type was active in a specific state machine last tick. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. | ||
| void | Handles reading, writing, and reference collecting using FArchive. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EUpdateAnimationFlag | Flag passed to UpdateAnimation, determines the path we follow |
Typedefs
| Name | Description |
|---|---|
| ProxyType |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddCurveValue
(
const FSmartNameMapping& Mapping, |
Please use AddCurveValue that takes a CurveName | |
| void | AddCurveValue
(
const SmartName::UID_Type Uid, |
Please use AddCurveValue that takes a CurveName | |
| float | CalculateDirection
(
const FVector& Velocity, |
Please use UKismetAnimationLibrary::CalculateDirection instead | |
| void | ClearLayerOverlay
(
TSubclassOf< UAnimInstance > InClass |
Function renamed, please use UnlinkAnimClassLayers | |
| void | GetAnimationCurveList
(
EAnimCurveType Type, |
This function is deprecated. Use AppendAnimationCurveList instead. | |
| UAnimInstance * | GetLayerSubInstanceByClass
(
TSubclassOf< UAnimInstance > InClass |
Function renamed, please use GetLinkedAnimLayerInstanceByClass | |
| UAnimInstance * | GetLayerSubInstanceByGroup
(
FName InGroup |
Function renamed, please use GetLinkedAnimLayerInstanceByGroup | |
| void | GetLinkedAnimGraphInstancesByTag
(
FName InTag, |
Tags are unique so this function is no longer supported. Please use GetLinkedAnimGraphInstanceByTag instead | |
| const FAnimNode_AssetPlayerBase * | GetRelevantAssetPlayerFromState
(
int32 MachineIndex, |
Please use GetRelevantAssetPlayerInterfaceFromState | |
| FAnimNode_LinkedInputPose * | GetSubInputNode
(
FName InSubInput, |
Function renamed, please use GetLinkedInputPoseNode | |
| UAnimInstance * | GetSubInstanceByTag
(
FName InTag |
Function renamed, please use GetLinkedAnimGraphInstanceByTag | |
| void | GetSubInstancesByTag
(
FName InTag, |
Function renamed, please use GetLinkedAnimGraphInstancesByTag | |
| void | This function is deprecated, please use OnUROPreInterpolation_AnyThread | ||
| void | ParallelEvaluateAnimation
(
bool bForceRefPose, |
Please use ParallelEvaluateAnimation with different signature. | |
| void | RecalcRequiredCurves
(
const FCurveEvaluationOption& CurveEvalOption |
Please use RecalcRequiredCurves that takes a FCurveFilterSettings. | |
| void | Please use ResetDynamics with a ETeleportType argument | ||
| void | SetLayerOverlay
(
TSubclassOf< UAnimInstance > InClass |
Function renamed, please use LinkAnimClassLayers | |
| void | SetSubInstanceClassByTag
(
FName InTag, |
Function renamed, please use LinkAnimGraphByTag | |
| void | StopAllMontagesByGroupName
(
FName InGroupName, |
Use StopAllMontagesByGroupName with other signature. |