Header <Animation/AnimInstance.h>
#include "Animation/AnimInstance.h"Includes 10
<CoreMinimal.h> |
<UObject/ObjectMacros.h> |
<UObject/Object.h> |
<Animation/AnimTypes.h> |
<Animation/AnimationAsset.h> |
<Animation/AnimNotifyQueue.h> |
<Animation/AnimSubsystemInstance.h> |
<Animation/AnimSync.h> |
<Animation/AnimNotifies/AnimNotify.h> |
<Animation/AnimInertializationRequest.h> |
Contents
UAnimInstance | (uclass class : UObject) |
class UAnimInstance
class UAnimInstance : public UObjectUCLASStransientBlueprintablehideCategories=AnimInstanceBlueprintTypeWithin=SkeletalMeshComponentMinimalAPIConstructors 1
| ~UAnimInstance | ~UAnimInstance(); |
Member functions 244
| MakeMontageTickRecord | void MakeMontageTickRecord(FAnimTickRecord& TickRecord, class UAnimMontage* Montage, float MoveDelta, float Weight, TArray<FPassedMarker>& MarkersPassedThisTick, FMarkerTickRecord& MarkerTickRecord); |
| GetSlotNodeGlobalWeight | float GetSlotNodeGlobalWeight(const FName& SlotNodeName) const;Get global weight in AnimGraph for this slot node. Note: this is the weight of the node, not the weight of any potential montage it is playing. |
| ShouldExtractRootMotion | bool ShouldExtractRootMotion() const;Should Extract Root Motion or not. Return true if we do. |
| GetSlotMontageGlobalWeight | float GetSlotMontageGlobalWeight(const FName& SlotNodeName) const;Get Global weight of any montages this slot node is playing. If this slot is not currently playing a montage, it will return 0. |
| GetSlotMontageLocalWeight | float GetSlotMontageLocalWeight(const FName& SlotNodeName) const;Get local weight of any montages this slot node is playing. If this slot is not currently playing a montage, it will return 0. This is double buffered, will return last frame data if called from Update or Evaluate. |
| CalcSlotMontageLocalWeight | float CalcSlotMontageLocalWeight(const FName& SlotNodeName) const;Get local weight of any montages this slot is playing. If this slot is not current playing a montage, it will return 0. This will return up to date data if called during Update or Evaluate. |
| TryGetPawnOwner | virtual APawn* TryGetPawnOwner() const;UFUNCTIONBlueprintCallableCategory=Animationkismet event functions |
| SavePoseSnapshot | virtual void SavePoseSnapshot(FName SnapshotName);UFUNCTIONBlueprintCallableCategory=Animation|PoseTakes a snapshot of the current skeletal mesh component pose & saves it internally. This snapshot can then be retrieved by name in the animation blueprint for blending. The snapshot is taken at the current LOD, so if… |
| AddPoseSnapshot | 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) |
| RemovePoseSnapshot | void RemovePoseSnapshot(FName SnapshotName);UFUNCTIONBlueprintCallableCategory=Animation|PoseRemove a previously saved pose snapshot from the internal snapshot cache |
| GetPoseSnapshot | const FPoseSnapshot* GetPoseSnapshot(FName SnapshotName) const;Get a cached pose snapshot by name |
| SnapshotPose | virtual void SnapshotPose(UPARAM(ref) FPoseSnapshot& Snapshot);UFUNCTIONBlueprintCallableCategory=Animation|PoseTakes a snapshot of the current skeletal mesh component pose and saves it to the specified snapshot. The snapshot is taken at the current LOD, so if for example you took the snapshot at LOD1 and then used it at LOD0… |
| GetSyncGroupMapRead | const TMap<FName, FAnimGroupInstance>& GetSyncGroupMapRead() const;Get the sync group we are currently reading from |
| GetUngroupedActivePlayersRead | const TArray<FAnimTickRecord>& GetUngroupedActivePlayersRead();Get the ungrouped active player we are currently reading from |
| GetAnimationCurves | const TMap<FName, float>& GetAnimationCurves(EAnimCurveType InCurveType) const;Get the current value of all animation curves |
| GatherDebugData | void GatherDebugData(FNodeDebugData& DebugData);Gather debug data from this instance proxy and the blend tree for display |
| CanRunParallelWork | virtual bool CanRunParallelWork() const;Can this animation instance run Update or Evaluation work in parallel |
| IsRunningParallelEvaluation | bool IsRunningParallelEvaluation() const;Are we being evaluated on a worker thread |
| NeedsUpdate | bool NeedsUpdate() const;Can does this anim instance need an update (parallel or not)? |
| IsInitialized | bool IsInitialized() const;Get whether we have initialized our animation instance or not. This will return false if UninitializeAnimation() has been called. |
| GetReceiveNotifiesFromLinkedInstances | bool GetReceiveNotifiesFromLinkedInstances() const;UFUNCTIONBlueprintPureCategory=Animation|NotifiesGet whether to process notifies from any linked anim instances |
| SetReceiveNotifiesFromLinkedInstances | void SetReceiveNotifiesFromLinkedInstances(bool bSet);UFUNCTIONBlueprintCallableCategory=Animation|NotifiesSet whether to process notifies from any linked anim instances |
| GetPropagateNotifiesToLinkedInstances | bool GetPropagateNotifiesToLinkedInstances() const;UFUNCTIONBlueprintPureCategory=Animation|NotifiesGet whether to propagate notifies to any linked anim instances |
| SetPropagateNotifiesToLinkedInstances | void SetPropagateNotifiesToLinkedInstances(bool bSet);UFUNCTIONBlueprintCallableCategory=Animation|NotifiesSet whether to propagate notifies to any linked anim instances |
| IsUsingMainInstanceMontageEvaluationData | bool IsUsingMainInstanceMontageEvaluationData() const;UFUNCTIONBlueprintCallableCategory=Animation|Linked Anim Graphs|Montage |
| SetUseMainInstanceMontageEvaluationData | void SetUseMainInstanceMontageEvaluationData(bool bSet);UFUNCTIONBlueprintCallableCategory=Animation|Linked Anim Graphs|Montage |
| GetOwningActor | AActor* GetOwningActor() const;UFUNCTIONBlueprintCallableCategory=AnimationReturns the owning actor of this AnimInstance |
| GetOwningComponent | USkeletalMeshComponent* GetOwningComponent() const;UFUNCTIONBlueprintCallableCategory=AnimationReturns the skeletal mesh component that has created this AnimInstance |
| Blueprint_GetMainAnimInstance | UAnimInstance* Blueprint_GetMainAnimInstance() const;UFUNCTIONBlueprintCallableCategory=AnimationGet the 'main' anim instance, i.e. the one that is hosted on the skeletal mesh component |
| BlueprintInitializeAnimation | void BlueprintInitializeAnimation();UFUNCTIONBlueprintImplementableEventExecuted when the Animation is initialized |
| BlueprintUpdateAnimation | void BlueprintUpdateAnimation(float DeltaTimeX);UFUNCTIONBlueprintImplementableEventExecuted when the Animation is updated |
| BlueprintPostEvaluateAnimation | void BlueprintPostEvaluateAnimation();UFUNCTIONBlueprintImplementableEventExecuted after the Animation is evaluated |
| BlueprintBeginPlay | void BlueprintBeginPlay();UFUNCTIONBlueprintImplementableEventExecuted when begin play is called on the owning component |
| BlueprintLinkedAnimationLayersInitialized | void BlueprintLinkedAnimationLayersInitialized();UFUNCTIONBlueprintImplementableEventExecuted when the all Linked Animation Layers are initialized |
| BlueprintThreadSafeUpdateAnimation | void BlueprintThreadSafeUpdateAnimation(float DeltaTime);UFUNCTIONBlueprintImplementableEventExecuted when the Animation Blueprint is updated on a worker thread, just prior to graph update |
| CanTransitionSignature | bool CanTransitionSignature() const; |
| PlaySlotAnimationAsDynamicMontage | UAnimMontage* PlaySlotAnimationAsDynamicMontage(UAnimSequenceBase* Asset, FName SlotNodeName, float BlendInTime = 0.25f, float BlendOutTime = 0.25f, float InPlayRate = 1.f, int32 LoopCount = 1, float BlendOutTriggerTime = -1.f, float InTimeToStartMontageAt = 0.f);UFUNCTIONBlueprintCallableCategory=Animation|MontagePlay normal animation asset on the slot node by creating a dynamic UAnimMontage. You can only play one asset (whether montage or animsequence) at a time per SlotGroup. |
| PlaySlotAnimationAsDynamicMontage_WithBlendArgs | UAnimMontage* PlaySlotAnimationAsDynamicMontage_WithBlendArgs(UAnimSequenceBase* Asset, FName SlotNodeName, const FAlphaBlendArgs& BlendIn, const FAlphaBlendArgs& BlendOut, float InPlayRate = 1.f, int32 LoopCount = 1, float BlendOutTriggerTime = -1.f, float InTimeToStartMontageAt = 0.f);UFUNCTIONBlueprintCallableCategory=Animation|MontagePlay normal animation asset on the slot node by creating a dynamic UAnimMontage with blend in arguments. You can only play one asset (whether montage or animsequence) at a time per SlotGroup. |
| PlaySlotAnimationAsDynamicMontage_WithBlendSettings | UAnimMontage* PlaySlotAnimationAsDynamicMontage_WithBlendSettings(UAnimSequenceBase* Asset, FName SlotNodeName, const FMontageBlendSettings& BlendInSettings, const FMontageBlendSettings& BlendOutSettings, float InPlayRate = 1.f, int32 LoopCount = 1, float BlendOutTriggerTime = -1.f, float InTimeToStartMontageAt = 0.f);UFUNCTIONBlueprintCallableCategory=Animation|MontagePlay normal animation asset on the slot node by creating a dynamic UAnimMontage with blend in settings. You can only play one asset (whether montage or animsequence) at a time per SlotGroup. |
| StopSlotAnimation | void StopSlotAnimation(float InBlendOutTime = 0.25f, FName SlotNodeName = NAME_None);UFUNCTIONBlueprintCallableCategory=Animation|MontageStops currently playing slot animation slot or all |
| IsPlayingSlotAnimation | bool IsPlayingSlotAnimation(const UAnimSequenceBase* Asset, FName SlotNodeName) const;UFUNCTIONBlueprintPureCategory=Animation|Montagebool IsPlayingSlotAnimation(const UAnimSequenceBase* Asset, FName SlotNodeName, UAnimMontage*& OutMontage) const;Return true if it's playing the slot animation |
| IsSlotActive | bool IsSlotActive(FName SlotNodeName) const;UFUNCTIONBlueprintPureCategory=Animation|MontageReturn true if this instance has an active montage in the given slot. A UAnimMontage that is playing in the slot and blending out is not determined to be "active". |
| Blueprint_GetSlotMontageLocalWeight | float Blueprint_GetSlotMontageLocalWeight(FName SlotNodeName) const;UFUNCTIONBlueprintPureCategory=Animation|MontageGet local weight of any montages this slot node is playing. If this slot is not currently playing a montage, it will return 0. |
| Montage_Play | float Montage_Play(UAnimMontage* MontageToPlay, float InPlayRate = 1.f, EMontagePlayReturnType ReturnValueType = EMontagePlayReturnType::MontageLength, float InTimeToStartMontageAt=0.f, bool bStopAllMontages = true);UFUNCTIONBlueprintCallableCategory=Animation|MontagePlays an animation montage. Returns the length of the animation montage in seconds. Returns 0.f if failed to play. |
| Montage_PlayWithBlendIn | float Montage_PlayWithBlendIn(UAnimMontage* MontageToPlay, const FAlphaBlendArgs& BlendIn, float InPlayRate = 1.f, EMontagePlayReturnType ReturnValueType = EMontagePlayReturnType::MontageLength, float InTimeToStartMontageAt=0.f, bool bStopAllMontages = true);UFUNCTIONBlueprintCallableCategory=Animation|MontagePlays an animation montage. Same as Montage_Play, but you can specify an AlphaBlend for Blend In settings. |
| Montage_PlayWithBlendSettings | float Montage_PlayWithBlendSettings(UAnimMontage* MontageToPlay, const FMontageBlendSettings& BlendInSettings, float InPlayRate = 1.f, EMontagePlayReturnType ReturnValueType = EMontagePlayReturnType::MontageLength, float InTimeToStartMontageAt=0.f, bool bStopAllMontages = true);UFUNCTIONBlueprintCallableCategory=Animation|MontagePlays an animation montage. Same as Montage_Play, but you can overwrite all of the montage's default blend in settings. |
| Montage_Stop | void Montage_Stop(float InBlendOutTime, const UAnimMontage* Montage = NULL);UFUNCTIONBlueprintCallableCategory=Animation|MontageStops the animation montage. If reference is NULL, it will stop ALL active montages. Stopped montages will blend out using their montage asset's BlendOut, with InBlendOutTime as the BlendTime |
| Montage_StopWithBlendOut | void Montage_StopWithBlendOut(const FAlphaBlendArgs& BlendOut, const UAnimMontage* Montage = nullptr);UFUNCTIONBlueprintCallableCategory=Animation|MontageSame as Montage_Stop. Uses values from the AlphaBlendArgs. Other settings come from the montage asset |
| Montage_StopWithBlendSettings | void Montage_StopWithBlendSettings(const FMontageBlendSettings& BlendOutSettings, const UAnimMontage* Montage = nullptr);UFUNCTIONBlueprintCallableCategory=Animation|MontageSame as Montage_Stop, but all blend settings are provided instead of using the ones on the montage asset |
| Montage_StopGroupByName | void Montage_StopGroupByName(float InBlendOutTime, FName GroupName);UFUNCTIONBlueprintCallableCategory=Animation|MontageStops all active montages belonging to a group. |
| Montage_Pause | void Montage_Pause(const UAnimMontage* Montage = NULL);UFUNCTIONBlueprintCallableCategory=Animation|MontagePauses the animation montage. If reference is NULL, it will pause ALL active montages. |
| Montage_Resume | void Montage_Resume(const UAnimMontage* Montage);UFUNCTIONBlueprintCallableCategory=Animation|MontageResumes a paused animation montage. If reference is NULL, it will resume ALL active montages. |
| Montage_JumpToSection | void Montage_JumpToSection(FName SectionName, const UAnimMontage* Montage = NULL);UFUNCTIONBlueprintCallableCategory=Animation|MontageMakes a montage jump to a named section. If Montage reference is NULL, it will do that to all active montages. |
| Montage_JumpToSectionsEnd | void Montage_JumpToSectionsEnd(FName SectionName, const UAnimMontage* Montage = NULL);UFUNCTIONBlueprintCallableCategory=Animation|MontageMakes a montage jump to the end of a named section. If Montage reference is NULL, it will do that to all active montages. |
| Montage_SetNextSection | void Montage_SetNextSection(FName SectionNameToChange, FName NextSection, const UAnimMontage* Montage = NULL);UFUNCTIONBlueprintCallableCategory=Animation|MontageRelink 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… |
| Montage_SetPlayRate | void Montage_SetPlayRate(const UAnimMontage* Montage, float NewPlayRate = 1.f);UFUNCTIONBlueprintCallableCategory=Animation|MontageChange AnimMontage play rate. NewPlayRate = 1.0 is the default playback rate. |
| Montage_IsActive | bool Montage_IsActive(const UAnimMontage* Montage) const;UFUNCTIONBlueprintPureCategory=Animation|MontageReturns true if the animation montage is active. If the Montage reference is NULL, it will return true if any Montage is active. |
| Montage_IsPlaying | bool Montage_IsPlaying(const UAnimMontage* Montage) const;UFUNCTIONBlueprintPureCategory=Animation|MontageReturns true if the animation montage is currently active and playing. If reference is NULL, it will return true is ANY montage is currently active and playing. |
| Montage_GetCurrentSection | FName Montage_GetCurrentSection(const UAnimMontage* Montage = NULL) const;UFUNCTIONBlueprintPureCategory=Animation|MontageReturns the name of the current animation montage section. |
| Montage_GetPosition | float Montage_GetPosition(const UAnimMontage* Montage) const;UFUNCTIONBlueprintPureCategory=Animation|MontageGet Current Montage Position |
| Montage_SetPosition | void Montage_SetPosition(const UAnimMontage* Montage, float NewPosition);UFUNCTIONBlueprintCallableCategory=Animation|MontageSet position. |
| Montage_GetIsStopped | bool Montage_GetIsStopped(const UAnimMontage* Montage) const;UFUNCTIONBlueprintPureCategory=Animation|Montagereturn true if Montage is not currently active. (not valid or blending out) |
| Montage_GetBlendTime | float Montage_GetBlendTime(const UAnimMontage* Montage) const;UFUNCTIONBlueprintPureCategory=Animation|MontageGet the current blend time of the Montage. If Montage reference is NULL, it will return the current blend time on the first active Montage found. |
| Montage_GetPlayRate | float Montage_GetPlayRate(const UAnimMontage* Montage) const;UFUNCTIONBlueprintPureCategory=Animation|MontageGet PlayRate for Montage. This does not account for RateScale, so it may not reflect the actual play rate seen in game (see Montage_GetEffectivePlayRate). If Montage reference is NULL, PlayRate for any Active Montage… |
| Montage_GetEffectivePlayRate | float Montage_GetEffectivePlayRate(const UAnimMontage* Montage) const;UFUNCTIONBlueprintPureCategory=Animation|MontageGet scaled PlayRate for Montage. This accounts for RateScale, so it will reflect the actual play rate seen in game. If Montage reference is NULL, scaled PlayRate for any Active Montage will be returned. If Montage is… |
| DynamicMontage_IsPlayingFrom | bool DynamicMontage_IsPlayingFrom(const UAnimSequenceBase* Animation) const;UFUNCTIONBlueprintPureCategory=Animation|MontageReturns true if there is an animation montage is currently active and playing that was created from the provided animation. |
| MontageSync_Follow | void MontageSync_Follow(const UAnimMontage* MontageFollower, const UAnimInstance* OtherAnimInstance, const UAnimMontage* MontageLeader);UFUNCTIONBlueprintCallableCategory=MontageAnimMontage sync. See notes in AnimMontage.h |
| MontageSync_StopFollowing | void MontageSync_StopFollowing(const UAnimMontage* MontageFollower);UFUNCTIONBlueprintCallableCategory=MontageStop following the montage's leader in this anim instance |
| IsAnyMontagePlaying | bool IsAnyMontagePlaying() const;UFUNCTIONBlueprintPureCategory=Animation|MontageReturns true if any montage is playing currently. Doesn't mean it's active though, it could be blending out. |
| GetCurrentActiveMontage | UAnimMontage* GetCurrentActiveMontage() const;UFUNCTIONBlueprintPureCategory=Animation|MontageGet a current Active Montage in this AnimInstance. Note that there might be multiple Active at the same time. This will only return the first active one it finds. |
| Montage_SetEndDelegate | void Montage_SetEndDelegate(FOnMontageEnded & InOnMontageEnded, UAnimMontage* Montage = NULL); |
| Montage_GetEndedDelegate | FOnMontageEnded* Montage_GetEndedDelegate(UAnimMontage* Montage = nullptr);Get pointer to Ended delegate for Montage. If Montage reference is NULL, it will pick the first active montage found. |
| Montage_SetBlendingOutDelegate | void Montage_SetBlendingOutDelegate(FOnMontageBlendingOutStarted& InOnMontageBlendingOut, UAnimMontage* Montage = NULL); |
| Montage_SetBlendedInDelegate | void Montage_SetBlendedInDelegate(FOnMontageBlendedInEnded& InOnMontageBlendingIn, UAnimMontage* Montage = nullptr); |
| Montage_GetBlendingOutDelegate | FOnMontageBlendingOutStarted* Montage_GetBlendingOutDelegate(UAnimMontage* Montage = NULL);Get pointer to BlendingOutStarted delegate for Montage. If Montage reference is NULL, it will pick the first active montage found. |
| Montage_SetSectionChangedDelegate | void Montage_SetSectionChangedDelegate(FOnMontageSectionChanged& InOnMontageSectionChanged, UAnimMontage* Montage = NULL); |
| Montage_GetSectionChangedDelegate | FOnMontageSectionChanged* Montage_GetSectionChangedDelegate(UAnimMontage* Montage = NULL);Get pointer to SectionChanged delegate for Montage. If Montage reference is NULL, it will pick the first active montage found. |
| Montage_GetNextSectionID | int32 Montage_GetNextSectionID(const UAnimMontage* Montage, int32 const & CurrentSectionID) const;Get next sectionID for given section ID |
| GetActiveMontageInstance | FAnimMontageInstance* GetActiveMontageInstance() const;Get Currently active montage instance. Note that there might be multiple Active at the same time. This will only return the first active one it finds. |
| GetActiveInstanceForMontage | FAnimMontageInstance* GetActiveInstanceForMontage(const UAnimMontage* Montage) const;Get Active FAnimMontageInstance for given Montage asset. Will return NULL if Montage is not currently Active. |
| GetInstanceForMontage | FAnimMontageInstance* GetInstanceForMontage(const UAnimMontage* Montage) const;Get FAnimMontageInstance for given Montage asset (even when blending out). Will return NULL if Montage is not currently playing. |
| GetMontageInstanceForID | FAnimMontageInstance* GetMontageInstanceForID(int32 MontageInstanceID);Get the FAnimMontageInstance currently running that matches this ID. Will return NULL if no instance is found. |
| StopAllMontages | void StopAllMontages(float BlendOut);Stop all montages that are active |
| OnMontageInstanceStopped | virtual void OnMontageInstanceStopped(FAnimMontageInstance & StoppedMontageInstance); |
| ClearMontageInstanceReferences | void ClearMontageInstanceReferences(FAnimMontageInstance& InMontageInstance); |
| GetLinkedInputPoseNode | FAnimNode_LinkedInputPose* GetLinkedInputPoseNode(FName InSubInput = NAME_None, FName InGraph = NAME_None);Get a linked input pose node by name, given a named graph. |
| GetLinkedAnimGraphInstanceByTag | UAnimInstance* GetLinkedAnimGraphInstanceByTag(FName InTag) const;UFUNCTIONBlueprintPureCategory=Animation|Linked Anim GraphsRuns through all nodes, attempting to find the first linked instance by name/tag |
| LinkAnimGraphByTag | void LinkAnimGraphByTag(FName InTag, TSubclassOf<UAnimInstance> InClass);UFUNCTIONBlueprintCallableCategory=Animation|Linked Anim GraphsRuns through all nodes, attempting to find a linked instance by name/tag, then sets the class of each node if the tag matches |
| LinkAnimClassLayers | virtual void LinkAnimClassLayers(TSubclassOf<UAnimInstance> InClass);UFUNCTIONBlueprintCallableCategory=Animation|Linked Anim GraphsRuns 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. Allocates one linked instance to run each of the groups… |
| UnlinkAnimClassLayers | virtual void UnlinkAnimClassLayers(TSubclassOf<UAnimInstance> InClass);UFUNCTIONBlueprintCallableCategory=Animation|Linked Anim GraphsRuns through all layer nodes, attempting to find layer nodes that are currently running the specified class, then resets each to its default value. State sharing rules are as with SetLayerOverlay. If InClass is null,… |
| GetLinkedAnimLayerInstanceByGroup | UAnimInstance* GetLinkedAnimLayerInstanceByGroup(FName InGroup) const;UFUNCTIONBlueprintPureCategory=Animation|Linked Anim GraphsGets the layer linked instance corresponding to the specified group |
| GetLinkedAnimLayerInstancesByGroup | void GetLinkedAnimLayerInstancesByGroup(FName InGroup, TArray<UAnimInstance*>& OutLinkedInstances) const;UFUNCTIONBlueprintPureCategory=Animation|Linked Anim GraphsRuns through all nodes, attempting to find all distinct layer linked instances in the group |
| GetLinkedAnimLayerInstanceByGroupAndClass | UAnimInstance* GetLinkedAnimLayerInstanceByGroupAndClass(FName InGroup, TSubclassOf<UAnimInstance> InClass) const;UFUNCTIONBlueprintPureCategory=Animation|Linked Anim GraphsGets layer linked instance that matches group and class |
| GetLinkedAnimLayerInstanceByClass | UAnimInstance* GetLinkedAnimLayerInstanceByClass(TSubclassOf<UAnimInstance> InClass, bool bCheckForChildClass = false) const;UFUNCTIONBlueprintPureCategory=Animation|Linked Anim GraphsGets the first layer linked instance corresponding to the specified class, optionally if bCheckForChildClass is true, it will check IsChildOf on InClass. |
| InitializeGroupedLayers | void InitializeGroupedLayers(bool bInDeferSubGraphInitialization);Sets up initial layer groupings |
| AddExternalNotifyHandler | void AddExternalNotifyHandler(UObject* ExternalHandlerObject, FName NotifyEventName);Allows other UObjects to bind custom event notifies similarly to the AnimBP |
| RemoveExternalNotifyHandler | void RemoveExternalNotifyHandler(UObject* ExternalHandlerObject, FName NotifyEventName);Other UObjects should call this to remove themselves from the callbacks |
| FindSubsystem | FAnimSubsystemInstance* FindSubsystem(UScriptStruct* InSubsystemType);template<typename SubsystemType> SubsystemType* FindSubsystem();Find a subsystem's instance-resident data. If no subsystem of the type exists this will return nullptr. |
| GetSubsystem | template<typename SubsystemType> SubsystemType& GetSubsystem();Get a subsystem's instance-resident data. If no subsystem of the type exists this will assert. |
| StopAllMontagesByGroupName | void StopAllMontagesByGroupName(FName InGroupName, const FMontageBlendSettings& BlendOutSettings);protectedStop all active montages belonging to 'InGroupName' |
| Montage_UpdateWeight | virtual void Montage_UpdateWeight(float DeltaSeconds);protectedUpdate weight of montages |
| Montage_Advance | virtual void Montage_Advance(float DeltaSeconds);protectedAdvance montages |
| Montage_StopInternal | void Montage_StopInternal(TFunctionRef<FMontageBlendSettings(const FAnimMontageInstance*)> AlphaBlendSelectorFunction, const UAnimMontage* Montage = nullptr);protected |
| Montage_PlayInternal | virtual float Montage_PlayInternal(UAnimMontage* MontageToPlay, const FMontageBlendSettings& BlendInSettings, float InPlayRate = 1.f, EMontagePlayReturnType ReturnValueType = EMontagePlayReturnType::MontageLength, float InTimeToStartMontageAt = 0.f, bool bStopAllMontages = true);protected |
| ConditionalFlushCompletedMontages | void ConditionalFlushCompletedMontages();Flush completed montages when animation tick is paused. This can be used to prevent montages from infinitely stacking up when not ticking. |
| RequestMontageInertialization | void RequestMontageInertialization(const UAnimMontage* Montage, float Duration, const UBlendProfile* BlendProfile = nullptr);void RequestMontageInertialization(const UAnimMontage* Montage, const FInertializationRequest& Request);Builds an inertialization request from the montage's group, provided duration and optional blend profile |
| RequestSlotGroupInertialization | void RequestSlotGroupInertialization(FName InSlotGroupName, float Duration, const UBlendProfile* BlendProfile = nullptr);UFUNCTIONBlueprintCallableCategory=Animation|Inertial BlendingRequests an inertial blend during the next anim graph update. Requires your anim graph to have a slot node belonging to the specified group name |
| QueueMontageBlendingOutEvent | void QueueMontageBlendingOutEvent(const FQueuedMontageBlendingOutEvent& MontageBlendingOutEvent);Queue a Montage BlendingOut Event to be triggered. |
| QueueMontageBlendedInEvent | void QueueMontageBlendedInEvent(const FQueuedMontageBlendedInEvent& MontageBlendedInEvent);Queue a Montage BlendedIn Event to be triggered. |
| QueueMontageEndedEvent | void QueueMontageEndedEvent(const FQueuedMontageEndedEvent& MontageEndedEvent);Queue a Montage Ended Event to be triggered. |
| QueueMontageSectionChangedEvent | void QueueMontageSectionChangedEvent(const FQueuedMontageSectionChangedEvent& MontageSectionChangedEvent);Queue a Montage Section Changed Event to be triggered. |
| IsPostUpdatingAnimation | bool IsPostUpdatingAnimation() const;Is this animation currently running post update |
| IsUpdatingAnimation | bool IsUpdatingAnimation() const;Is this animation currently running update |
| SetRootMotionMode | void SetRootMotionMode(TEnumAsByte<ERootMotionMode::Type> Value);UFUNCTIONBlueprintCallableCategory=Animation|Root MotionSet RootMotionMode |
| GetInstanceAssetPlayerLength | float GetInstanceAssetPlayerLength(int32 AssetPlayerIndex);UFUNCTIONBlueprintPureCategory=Animation|Asset PlayerNOTE: Derived anim getters |
| GetInstanceAssetPlayerTime | float GetInstanceAssetPlayerTime(int32 AssetPlayerIndex);UFUNCTIONBlueprintPureCategory=Animation|Asset PlayerGet the current accumulated time in seconds for an asset player node |
| GetInstanceAssetPlayerTimeFraction | float GetInstanceAssetPlayerTimeFraction(int32 AssetPlayerIndex);UFUNCTIONBlueprintPureCategory=Animation|Asset PlayerGet the current accumulated time as a fraction for an asset player node |
| GetInstanceAssetPlayerTimeFromEnd | float GetInstanceAssetPlayerTimeFromEnd(int32 AssetPlayerIndex);UFUNCTIONBlueprintPureCategory=Animation|Asset PlayerGet the time in seconds from the end of an animation in an asset player node |
| GetInstanceAssetPlayerTimeFromEndFraction | float GetInstanceAssetPlayerTimeFromEndFraction(int32 AssetPlayerIndex);UFUNCTIONBlueprintPureCategory=Animation|Asset PlayerGet the time as a fraction of the asset length of an animation in an asset player node |
| GetInstanceMachineWeight | float GetInstanceMachineWeight(int32 MachineIndex);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet the blend weight of a specified state machine |
| GetInstanceStateWeight | float GetInstanceStateWeight(int32 MachineIndex, int32 StateIndex);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet the blend weight of a specified state |
| GetInstanceCurrentStateElapsedTime | float GetInstanceCurrentStateElapsedTime(int32 MachineIndex);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet the current elapsed time of a state within the specified state machine |
| GetInstanceTransitionCrossfadeDuration | float GetInstanceTransitionCrossfadeDuration(int32 MachineIndex, int32 TransitionIndex);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet the crossfade duration of a specified transition |
| GetInstanceTransitionTimeElapsed | float GetInstanceTransitionTimeElapsed(int32 MachineIndex, int32 TransitionIndex);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet the elapsed time in seconds of a specified transition |
| GetInstanceTransitionTimeElapsedFraction | float GetInstanceTransitionTimeElapsedFraction(int32 MachineIndex, int32 TransitionIndex);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet the elapsed time as a fraction of the crossfade duration of a specified transition |
| GetRelevantAnimTimeRemaining | float GetRelevantAnimTimeRemaining(int32 MachineIndex, int32 StateIndex);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet the time remaining in seconds for the most relevant animation in the source state |
| GetRelevantAnimTimeRemainingFraction | float GetRelevantAnimTimeRemainingFraction(int32 MachineIndex, int32 StateIndex);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet the time remaining as a fraction of the duration for the most relevant animation in the source state |
| GetRelevantAnimLength | float GetRelevantAnimLength(int32 MachineIndex, int32 StateIndex);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet the length in seconds of the most relevant animation in the source state |
| GetRelevantAnimTime | float GetRelevantAnimTime(int32 MachineIndex, int32 StateIndex);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet the current accumulated time in seconds for the most relevant animation in the source state |
| GetRelevantAnimTimeFraction | float GetRelevantAnimTimeFraction(int32 MachineIndex, int32 StateIndex);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet the current accumulated time as a fraction of the length of the most relevant animation in the source state |
| WasAnimNotifyStateActiveInAnyState | bool WasAnimNotifyStateActiveInAnyState(TSubclassOf<UAnimNotifyState> AnimNotifyStateType);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet whether a particular notify state was active in any state machine last tick. |
| WasAnimNotifyStateActiveInStateMachine | bool WasAnimNotifyStateActiveInStateMachine(int32 MachineIndex, TSubclassOf<UAnimNotifyState> AnimNotifyStateType);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet whether a particular notify state is active in a specific state machine last tick. |
| WasAnimNotifyStateActiveInSourceState | bool WasAnimNotifyStateActiveInSourceState(int32 MachineIndex, int32 StateIndex, TSubclassOf<UAnimNotifyState> AnimNotifyStateType);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet whether a particular notify state is active in a specific state last tick. |
| WasAnimNotifyTriggeredInSourceState | bool WasAnimNotifyTriggeredInSourceState(int32 MachineIndex, int32 StateIndex, TSubclassOf<UAnimNotify> AnimNotifyType);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet whether the most relevant animation was in a particular notify state last tick. |
| WasAnimNotifyNameTriggeredInSourceState | bool WasAnimNotifyNameTriggeredInSourceState(int32 MachineIndex, int32 StateIndex, FName NotifyName);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet whether the most relevant animation triggered the animation notify with the specified name last tick.. |
| WasAnimNotifyTriggeredInStateMachine | bool WasAnimNotifyTriggeredInStateMachine(int32 MachineIndex, TSubclassOf<UAnimNotify> AnimNotifyType);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet whether a particular notify type was active in a specific state machine last tick. |
| WasAnimNotifyNameTriggeredInStateMachine | bool WasAnimNotifyNameTriggeredInStateMachine(int32 MachineIndex, FName NotifyName);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet whether the given state machine triggered the animation notify with the specified name last tick. |
| WasAnimNotifyTriggeredInAnyState | bool WasAnimNotifyTriggeredInAnyState(TSubclassOf<UAnimNotify> AnimNotifyType);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet whether an animation notify of a given type was triggered last tick. |
| WasAnimNotifyNameTriggeredInAnyState | bool WasAnimNotifyNameTriggeredInAnyState(FName NotifyName);UFUNCTIONBlueprintPureCategory=Animation|State MachinesGet whether the animation notify with the specified name triggered last tick. |
| GetStateMachineInstanceFromName | const FAnimNode_StateMachine* GetStateMachineInstanceFromName(FName MachineName) const;Gets the runtime instance of the specified state machine by Name |
| GetMachineDescription | const FBakedAnimationStateMachine* GetMachineDescription(IAnimClassInterface* AnimBlueprintClass, FAnimNode_StateMachine* MachineInstance);Get the machine description for the specified instance. Does not rely on PRIVATE_MachineDescription being initialized |
| GetStateMachineIndexAndDescription | void GetStateMachineIndexAndDescription(FName InMachineName, int32& OutMachineIndex, const FBakedAnimationStateMachine** OutMachineDescription); |
| GetSyncGroupIndexFromName | int32 GetSyncGroupIndexFromName(FName SyncGroupName) const;Returns the baked sync group index from the compile step |
| GetStateMachineIndex | int32 GetStateMachineIndex(FName MachineName) const;Gets the index of the state machine matching MachineName |
| GetStateMachineInstance | const FAnimNode_StateMachine* GetStateMachineInstance(int32 MachineIndex) const;Gets the runtime instance of the specified state machine |
| GetInstanceAssetPlayerIndex | int32 GetInstanceAssetPlayerIndex(FName MachineName, FName StateName, FName InstanceName = NAME_None) const;Get the index of the specified instance asset player. Useful to pass to GetInstanceAssetPlayerLength (etc.). Passing NAME_None to InstanceName will return the first (assumed only) player instance index found. |
| GetInstanceAssetPlayers | TArray<const FAnimNode_AssetPlayerBase*> GetInstanceAssetPlayers(const FName& GraphName) const;Returns all Animation Nodes of FAnimNode_AssetPlayerBase class within the specified (named) Animation Graph |
| GetMutableInstanceAssetPlayers | TArray<FAnimNode_AssetPlayerBase*> GetMutableInstanceAssetPlayers(const FName& GraphName);Returns all Animation Nodes of FAnimNode_AssetPlayerBase class within the specified (named) Animation Graph |
| GetInstanceRelevantAssetPlayers | TArray<const FAnimNode_AssetPlayerRelevancyBase*> GetInstanceRelevantAssetPlayers(const FName& GraphName) const;Returns all Animation Nodes implementing FAnimNode_AssetPlayerRelevancyBase within the specified (named) Animation Graph |
| GetMutableInstanceRelevantAssetPlayers | TArray<FAnimNode_AssetPlayerRelevancyBase*> GetMutableInstanceRelevantAssetPlayers(const FName& GraphName);Returns all Animation Nodes of FAnimNode_AssetPlayerRelevancyBase class within the specified (named) Animation Graph |
| GetStateMachineInstanceDesc | const FBakedAnimationStateMachine* GetStateMachineInstanceDesc(FName MachineName) const;Gets the runtime instance desc of the state machine specified by name |
| GetRelevantAssetPlayerInterfaceFromState | const FAnimNode_AssetPlayerRelevancyBase* GetRelevantAssetPlayerInterfaceFromState(int32 MachineIndex, int32 StateIndex) const;Gets the most relevant asset player in a specified state |
| GetBlendProfileByName | const UBlendProfile* GetBlendProfileByName(FName InBlendProfileName) const;UFUNCTIONBlueprintPureCategory=Animation|SkeletonReturns a blend profile by name from our current skeleton. Null if not found. |
| GetCurveValue | float GetCurveValue(FName CurveName) const;UFUNCTIONBlueprintPureCategory=Animation|Curvesbool GetCurveValue(FName CurveName, float& OutValue) const;Returns the value of a named curve. |
| GetCurveValueWithDefault | bool GetCurveValueWithDefault(FName CurveName, float DefaultValue, float& OutValue);UFUNCTIONBlueprintPureCategory=Animation|CurvesReturns whether a named curve was found, its value, and a default value when it's not found. |
| GetActiveCurveNames | void GetActiveCurveNames(EAnimCurveType CurveType, TArray<FName>& OutNames) const;UFUNCTIONBlueprintPureCategory=Animation|CurvesThis returns last up-to-date list of active curve names |
| GetAllCurveNames | void GetAllCurveNames(TArray<FName>& OutNames) const;UFUNCTIONBlueprintPureCategory=Animation|CurvesThis returns all curve names. This is the same as calling GetActiveCurveNames with CurveType == AttributeCurve |
| OverrideCurveValue | void OverrideCurveValue(FName CurveName, float Value);Overrides the value of a named curve. Will be reset next evaluation |
| GetCurrentStateName | FName GetCurrentStateName(int32 MachineIndex);UFUNCTIONBlueprintPureCategory=Animation|State MachinesReturns the name of a currently active state in a state machine. |
| SetMorphTarget | void SetMorphTarget(FName MorphTargetName, float Value);UFUNCTIONBlueprintCallableCategory=Animation|Morph TargetsSets a morph target to a certain weight. |
| ClearMorphTargets | void ClearMorphTargets();UFUNCTIONBlueprintCallableCategory=Animation|Morph TargetsClears the current morph targets. |
| GetTimeToClosestMarker | bool GetTimeToClosestMarker(FName SyncGroup, FName MarkerName, float& OutMarkerTime) const;UFUNCTIONBlueprintCallableCategory=Animation|Synchronization--- AI communication end ---// |
| HasMarkerBeenHitThisFrame | bool HasMarkerBeenHitThisFrame(FName SyncGroup, FName MarkerName) const;UFUNCTIONBlueprintCallableCategory=Animation|Synchronization |
| IsSyncGroupBetweenMarkers | bool IsSyncGroupBetweenMarkers(FName InSyncGroupName, FName PreviousMarker, FName NextMarker, bool bRespectMarkerOrder = true) const;UFUNCTIONBlueprintCallableCategory=Animation|Synchronization |
| GetSyncGroupPosition | FMarkerSyncAnimPosition GetSyncGroupPosition(FName InSyncGroupName) const;UFUNCTIONBlueprintCallableCategory=Animation|Synchronization |
| RequestTransitionEvent | bool RequestTransitionEvent(const FName EventName, const double RequestTimeout, const ETransitionRequestQueueMode QueueMode, const ETransitionRequestOverwriteMode OverwriteMode);UFUNCTIONBlueprintCallableCategory=AnimationAttempts to queue a transition request, returns true if the request was successful |
| ClearTransitionEvents | void ClearTransitionEvents(const FName EventName);UFUNCTIONBlueprintCallableCategory=AnimationRemoves all queued transition requests with the given event name |
| ClearAllTransitionEvents | void ClearAllTransitionEvents();UFUNCTIONBlueprintCallableCategory=AnimationRemoves all queued transition requests |
| QueryTransitionEvent | bool QueryTransitionEvent(int32 MachineIndex, int32 TransitionIndex, FName EventName);UFUNCTIONBlueprintPureCategory=TransitionsReturns whether or not the given event transition request has been queued |
| QueryAndMarkTransitionEvent | bool QueryAndMarkTransitionEvent(int32 MachineIndex, int32 TransitionIndex, FName EventName);UFUNCTIONBlueprintPureCategory=TransitionsBehaves like QueryTransitionEvent but additionally marks the event for consumption |
| Serialize | virtual void Serialize(FArchive& Ar) override; |
| BeginDestroy | virtual void BeginDestroy() override; |
| PostInitProperties | virtual void PostInitProperties() override; |
| OnUROSkipTickAnimation | virtual void OnUROSkipTickAnimation();Called when skipping an animation update because of URO. |
| OnUROPreInterpolation_AnyThread | virtual void OnUROPreInterpolation_AnyThread(FAnimationEvaluationContext& InOutContext);Called before URO interpolation is performed. Useful for modifying bone space transforms etc. before interpolation is performed. Note that this can be called on a worker thread. |
| InitializeAnimation | void InitializeAnimation(bool bInDeferRootNodeInitialization = false);Animation phase trigger start with initialize update happens in every tick. Can happen in parallel with others if conditions are right. evaluate happens when condition is met - i.e. depending on your… |
| PreUpdateLinkedInstances | virtual void PreUpdateLinkedInstances(float DeltaSeconds);Called on the game thread before UpdateAnimation is called on linked instances |
| UpdateAnimation | void UpdateAnimation(float DeltaSeconds, bool bNeedsValidRootMotion, EUpdateAnimationFlag UpdateFlag = EUpdateAnimationFlag::Default);Update Animation code-paths, updates and advances animation state, returns whether or not the actual update should have been called immediately |
| ParallelUpdateAnimation | void ParallelUpdateAnimation();Run update animation work on a worker thread |
| PostUpdateAnimation | void PostUpdateAnimation();Called after updates are completed, dispatches notifies etc. |
| PreEvaluateAnimation | void PreEvaluateAnimation();Called on the game thread pre-evaluation. |
| ParallelCanEvaluate | bool ParallelCanEvaluate(const USkeletalMesh* InSkeletalMesh) const;Check whether evaluation can be performed on the supplied skeletal mesh. Can be called from worker threads. |
| ParallelEvaluateAnimation | void ParallelEvaluateAnimation(bool bForceRefPose, const USkeletalMesh* InSkeletalMesh, FParallelEvaluationData& OutAnimationPoseData);Perform evaluation. Can be called from worker threads. |
| PostEvaluateAnimation | void PostEvaluateAnimation(); |
| UninitializeAnimation | void UninitializeAnimation(); |
| NativeInitializeAnimation | virtual void NativeInitializeAnimation();the below functions are the native overrides for each phase Native initialization override point |
| NativeUpdateAnimation | virtual void NativeUpdateAnimation(float DeltaSeconds);Native update override point. It is usually a good idea to simply gather data in this step and for the bulk of the work to be done in NativeThreadSafeUpdateAnimation. |
| NativeThreadSafeUpdateAnimation | virtual void NativeThreadSafeUpdateAnimation(float DeltaSeconds);Native thread safe update override point. Executed on a worker thread just prior to graph update for linked anim instances, only called when the hosting node(s) are relevant |
| NativePostEvaluateAnimation | virtual void NativePostEvaluateAnimation();Native Post Evaluate override point |
| NativeUninitializeAnimation | virtual void NativeUninitializeAnimation();Native Uninitialize override point |
| EnableUpdateAnimation | void EnableUpdateAnimation(bool bEnable);Enable / Disable animation update. This is provided as an optimization to disable linked instances that aren't relevant. Disabling an instance whose graph is still evaluated will assert and causes issues. |
| IsUpdateAnimationEnabled | bool IsUpdateAnimationEnabled() const; |
| NativeBeginPlay | virtual void NativeBeginPlay();Executed when begin play is called on the owning component |
| AddNativeTransitionBinding | void AddNativeTransitionBinding(const FName& MachineName, const FName& PrevStateName, const FName& NextStateName, const FCanTakeTransition& NativeTransitionDelegate, const FName& TransitionName = NAME_None);Sets up a native transition delegate between states with PrevStateName and NextStateName, in the state machine with name MachineName. Note that a transition already has to exist for this to succeed |
| HasNativeTransitionBinding | bool HasNativeTransitionBinding(const FName& MachineName, const FName& PrevStateName, const FName& NextStateName, FName& OutBindingName);Check for whether a native rule is bound to the specified transition |
| AddNativeStateEntryBinding | void AddNativeStateEntryBinding(const FName& MachineName, const FName& StateName, const FOnGraphStateChanged& NativeEnteredDelegate);Sets up a native state entry delegate from state with StateName, in the state machine with name MachineName. |
| HasNativeStateEntryBinding | bool HasNativeStateEntryBinding(const FName& MachineName, const FName& StateName, FName& OutBindingName);Check for whether a native entry delegate is bound to the specified state |
| AddNativeStateExitBinding | void AddNativeStateExitBinding(const FName& MachineName, const FName& StateName, const FOnGraphStateChanged& NativeExitedDelegate);Sets up a native state exit delegate from state with StateName, in the state machine with name MachineName. |
| HasNativeStateExitBinding | bool HasNativeStateExitBinding(const FName& MachineName, const FName& StateName, FName& OutBindingName);Check for whether a native exit delegate is bound to the specified state |
| DisplayDebug | void DisplayDebug(UCanvas* Canvas, const FDebugDisplayInfo& DebugDisplay, float& YL, float& YPos);Debug output for this anim instance. Info for SyncGroups, Graph, Montages, etc. |
| DisplayDebugInstance | virtual void DisplayDebugInstance(FDisplayDebugManager& DisplayDebugManager, float& Indent);Display debug info about AnimInstance. Can be overridden to add custom info from child classes. |
| ResetDynamics | void ResetDynamics(ETeleportType InTeleportType);UFUNCTIONBlueprintCallableCategory=Animation|DynamicsReset any dynamics running simulation-style updates (e.g. on teleport, time skip etc.) |
| GetLODLevel | virtual int32 GetLODLevel() const;Get the 'animation' LOD level, which by default is the PredictedLODLevel of this anim instance's skeletal mesh component. This function is used by the anim graph to determine the LOD level at which to run. |
| GetUpdateCounter | const FGraphTraversalCounter& GetUpdateCounter() const;Access a read only version of the Updater Counter from the AnimInstanceProxy on the GameThread. |
| GetRequiredBones | FBoneContainer& GetRequiredBones();const FBoneContainer& GetRequiredBones() const;Access the required bones array |
| GetRequiredBonesOnAnyThread | const FBoneContainer& GetRequiredBonesOnAnyThread() const; |
| UpdateCurvesToEvaluationContext | void UpdateCurvesToEvaluationContext(const FAnimationEvaluationContext& InOutContext);Pushes blended heap curve to output curves in the proxy using required bones cached data |
| UpdateCurvesPostEvaluation | void UpdateCurvesPostEvaluation();Update curves once evaluation has taken place. Mostly pushes curves to materials/morphs |
| SwapCurveWithEvaluationContext | void SwapCurveWithEvaluationContext(FAnimationEvaluationContext& InOutContext);Swap curves out for evaluation |
| UpdateCurves | void UpdateCurves(const FBlendedHeapCurve& InCurves);Update all internal curves from Blended Curve |
| CopyCurveValues | void CopyCurveValues(const UAnimInstance& InSourceInstance);Copy curves from external source |
| RefreshCurves | void RefreshCurves(USkeletalMeshComponent* Component);Refresh currently existing curves |
| HasMorphTargetCurves | bool HasMorphTargetCurves() const;Check whether we have active morph target curves |
| HasActiveCurves | bool HasActiveCurves() const;Check whether we have any active curves |
| GetDeltaSeconds | float GetDeltaSeconds() const;UFUNCTIONBlueprintPureCategory=AnimationGet the current delta time |
| AppendAnimationCurveList | void AppendAnimationCurveList(EAnimCurveType Type, TMap<FName, float>& InOutCurveList) const;Append the type of curve to the OutCurveList specified by Curve Flags |
| GetAnimationCurveList | const TMap<FName, float>& GetAnimationCurveList(EAnimCurveType Type) const;Return the list of curves that are specified by type |
| GetLastMontageFlushFrame | uint32 GetLastMontageFlushFrame() const;Gets the last frame any completed montages where flushed. Only important if a.Montage.FlushCompletedMontagesOnPlay is enabled. |
| RecalcRequiredBones | void RecalcRequiredBones();Recalculate Required Bones [RequiredBones] Is called when bRequiredBonesUpToDate = false |
| RecalcRequiredCurves | void RecalcRequiredCurves(const UE::Anim::FCurveFilterSettings& CurveFilterSettings);Recalculate Required Curves based on Required Bones [RequiredBones] |
| GetSkelMeshComponent | USkeletalMeshComponent* GetSkelMeshComponent() const;Returns the associated skeletal mesh component. This will always be non-NULL. |
| GetWorld | virtual UWorld* GetWorld() const override; |
| TriggerAnimNotifies | void TriggerAnimNotifies(float DeltaSeconds);Trigger AnimNotifies |
| TriggerSingleAnimNotify | void TriggerSingleAnimNotify(const FAnimNotifyEvent* AnimNotifyEvent);void TriggerSingleAnimNotify(FAnimNotifyEventReference& EventReference);Trigger an AnimNotify. Note that this version does not provide any context for the event |
| EndNotifyStates | void EndNotifyStates();Triggers end on active notify states and clears the array |
| RecordMachineWeight | void RecordMachineWeight(const int32 InMachineClassIndex, const float InMachineWeight);Given a machine index, record a state machine weight for this frame |
| AddCurveValue | void AddCurveValue(const FName& CurveName, float Value, bool bMorphtarget = false, bool bMaterial = false);Add curve float data, using a curve name. |
| RecordStateWeight | void RecordStateWeight(const int32 InMachineClassIndex, const int32 InStateIndex, const float InStateWeight, const float InElapsedTime);Given a machine and state index, record a state weight for this frame |
| HandleNotify | virtual bool HandleNotify(const FAnimNotifyEvent& AnimNotifyEvent);protectedImplementable custom function to handle notifies |
| GetSkelMeshComponentChecked | USkeletalMeshComponent* GetSkelMeshComponentChecked() const;protectedReturns the associated skeletal mesh component. Will assert if invalid. |
| GetSkelMeshComponentUnchecked | USkeletalMeshComponent* GetSkelMeshComponentUnchecked() const;protectedReturns the associated skeletal mesh component, or NULL if invalid/unset. |
| GetRootMotionMontageInstance | FAnimMontageInstance * GetRootMotionMontageInstance() const;Get current RootMotion FAnimMontageInstance if any. NULL otherwise. |
| ConsumeExtractedRootMotion | FRootMotionMovementParams ConsumeExtractedRootMotion(float Alpha);Get current accumulated root motion, removing it from the AnimInstance in the process |
| QueueRootMotionBlend | void QueueRootMotionBlend(const FTransform& RootTransform, const FName& SlotName, float Weight);Queue blended root motion. This is used to blend in root motion transforms according to the correctly-updated slot weight (after the animation graph has been updated). |
| UpdateMontageEvaluationData | void UpdateMontageEvaluationData();protectedUpdates the montage data used for evaluation based on the current playing montages |
| PreUpdateAnimation | virtual void PreUpdateAnimation(float DeltaSeconds);protectedCalled to setup for updates |
| UpdateCurvesToComponents | void UpdateCurvesToComponents(USkeletalMeshComponent* Component);protectedupdate animation curves to component |
| CreateAnimInstanceProxy | virtual FAnimInstanceProxy* CreateAnimInstanceProxy();protectedOverride point for derived classes to create their own proxy objects (allows custom allocation) |
| DestroyAnimInstanceProxy | virtual void DestroyAnimInstanceProxy(FAnimInstanceProxy* InProxy);protectedOverride point for derived classes to destroy their own proxy objects (allows custom allocation) |
| GetProxyOnGameThread | template <typename T> T& GetProxyOnGameThread();protectedtemplate <typename T> const T& GetProxyOnGameThread() const;protectedAccess the proxy but block if a task is currently in progress as it wouldn't be safe to access it = FAnimInstanceProxy |
| GetProxyOnAnyThread | template <typename T> T& GetProxyOnAnyThread();protectedtemplate <typename T> const T& GetProxyOnAnyThread() const;protectedAccess 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 = FAnimInstanceProxy |
| ShouldTriggerAnimNotifyState | virtual bool ShouldTriggerAnimNotifyState(const UAnimNotifyState* AnimNotifyState) const;Return whether this AnimNotifyState should be triggered |
| DispatchQueuedAnimEvents | void DispatchQueuedAnimEvents();Dispatch AnimEvents (AnimNotifies, Montage Events) queued during UpdateAnimation() |
| ClearQueuedAnimEvents | void ClearQueuedAnimEvents(bool bShouldUpdateActiveAnimNotifiesSinceLastTick);Clear AnimEvents (AnimNotifies, Montage Events) queued. Note this is mainly needed for very specific scenarios where our notify queue is populated more than once per tick, avoid calling it if not needed. |
Static functions 4
| AddReferencedObjects | static void AddReferencedObjects(UObject* InThis, FReferenceCollector& Collector); |
| GetProxyOnGameThreadStatic | template <typename T> static T* GetProxyOnGameThreadStatic(UAnimInstance* InAnimInstance);protectedAccess 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 |
| IsSkeletalMeshComponent | static bool IsSkeletalMeshComponent(const UObject* Object);protected |
| HandleExistingParallelEvaluationTask | static void HandleExistingParallelEvaluationTask(USkeletalMeshComponent* Component);protected |