This is list of anim segments for this track For now this is only one TArray, but in the future we should define more transition/blending behaviors 更多...
#include <AnimCompositeBase.h>
Public 成员函数 | |
| void | EnableRootMotionSettingFromMontage (bool bInEnableRootMotion, const ERootMotionRootLock::Type InRootMotionRootLock) |
| Enable Root motion setting from montage | |
| ENGINE_API void | GetAnimationPose (FCompactPose &OutPose, FBlendedCurve &OutCurve, const FAnimExtractContext &ExtractionContext) const |
| Get animation pose function | |
| void | GetAnimNotifiesFromTrackPositions (const float &PreviousTrackPosition, const float &CurrentTrackPosition, TArray< const FAnimNotifyEvent * > &OutActiveNotifies) const |
| Retrieves AnimNotifies between two Track time positions. 更多... | |
| void | GetAnimNotifiesFromTrackPositions (const float &PreviousTrackPosition, const float &CurrentTrackPosition, TArray< FAnimNotifyEventReference > &OutActiveNotifies) const |
| Retrieves AnimNotifies between two Track time positions. 更多... | |
| ENGINE_API void | GetRootMotionExtractionStepsForTrackRange (TArray< FRootMotionExtractionStep > &RootMotionExtractionSteps, const float StartTrackPosition, const float EndTrackPosition) const |
| Given a Track delta position [StartTrackPosition, EndTrackPosition] See if any AnimSegment overlaps any of it, and if it does, break it up into RootMotionExtractionPieces. 更多... | |
| ENGINE_API FAnimSegment * | GetSegmentAtTime (float InTime) |
| Get the segment at the given absolute montage time | |
| ENGINE_API int32 | GetSegmentIndexAtTime (float InTime) const |
| Gets the index of the segment at the given absolute montage time. | |
| bool | HasRootMotion () const |
| Returns whether any of the animation sequences this track uses has root motion | |
| bool | IsNotifyAvailable () const |
| return true if anim notify is available | |
| ENGINE_API bool | IsValidToAdd (const UAnimSequenceBase *SequenceBase) const |
| return true if valid to add | |
| void | ValidateSegmentTimes () |
| Ensure segment times are correctly formed (no gaps and no extra time at the end of the anim reference) | |
This is list of anim segments for this track For now this is only one TArray, but in the future we should define more transition/blending behaviors
| void FAnimTrack::GetAnimNotifiesFromTrackPositions | ( | const float & | PreviousTrackPosition, |
| const float & | CurrentTrackPosition, | ||
| TArray< const FAnimNotifyEvent * > & | OutActiveNotifies | ||
| ) | const |
Retrieves AnimNotifies between two Track time positions.
]PreviousTrackPosition, CurrentTrackPosition] Between PreviousTrackPosition (exclusive) and CurrentTrackPosition (inclusive). Supports playing backwards (CurrentTrackPosition<PreviousTrackPosition). Only supports contiguous range, does NOT support looping and wrapping over.
| void FAnimTrack::GetAnimNotifiesFromTrackPositions | ( | const float & | PreviousTrackPosition, |
| const float & | CurrentTrackPosition, | ||
| TArray< FAnimNotifyEventReference > & | OutActiveNotifies | ||
| ) | const |
Retrieves AnimNotifies between two Track time positions.
]PreviousTrackPosition, CurrentTrackPosition] Between PreviousTrackPosition (exclusive) and CurrentTrackPosition (inclusive). Supports playing backwards (CurrentTrackPosition<PreviousTrackPosition). Only supports contiguous range, does NOT support looping and wrapping over.
| ENGINE_API void FAnimTrack::GetRootMotionExtractionStepsForTrackRange | ( | TArray< FRootMotionExtractionStep > & | RootMotionExtractionSteps, |
| const float | StartTrackPosition, | ||
| const float | EndTrackPosition | ||
| ) | const |
Given a Track delta position [StartTrackPosition, EndTrackPosition] See if any AnimSegment overlaps any of it, and if it does, break it up into RootMotionExtractionPieces.
Supports animation playing forward and backward. Track segment should be a contiguous range, not wrapping over due to looping.