![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AnimCompositeBase.h>
Public Attributes | |
| float | StartPos |
| float | AnimStartTime |
| float | AnimEndTime |
| float | AnimPlayRate |
| int32 | LoopingCount |
Protected Attributes | |
| TObjectPtr< UAnimSequenceBase > | AnimReference |
Friends | |
| struct | FAnimTrack |
this is anim segment that defines what animation and how
|
default |
|
default |
|
inline |
Converts 'Track Position' to position on AnimSequence. Note: doesn't check that position is in valid range, must do that before calling this function!
| UAnimSequenceBase * FAnimSegment::GetAnimationData | ( | float | PositionInTrack, |
| float & | PositionInAnim | ||
| ) | const |
Get Animation Data.
| void FAnimSegment::GetAnimNotifiesFromTrackPositions | ( | const float & | PreviousTrackPosition, |
| const float & | CurrentTrackPosition, | ||
| FAnimNotifyContext & | NotifyContext | ||
| ) | 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.
|
inline |
|
inline |
End Position within this AnimCompositeBase
|
inline |
| void FAnimSegment::GetRootMotionExtractionStepsForTrackRange | ( | TArray< FRootMotionExtractionStep > & | RootMotionExtractionSteps, |
| const float | StartTrackPosition, | ||
| const float | EndTrackPosition | ||
| ) | const |
Given a Track delta position [StartTrackPosition, EndTrackPosition] See if this AnimSegment overlaps any of it, and if it does, break it up into RootMotionExtractionSteps. Supports animation playing forward and backward. Track segment should be a contiguous range, not wrapping over due to looping.
Given a Track delta position [StartTrackPosition, EndTrackPosition] See if this AnimSegment overlaps any of it, and if it does, break them up into a sequence of FRootMotionExtractionStep. Supports animation playing forward and backward. Track range should be a contiguous range, not wrapping over due to looping.
|
inline |
Ensures PlayRate is non Zero
|
inline |
return true if anim notify is available
|
inline |
return true if valid, false otherwise, only invalid if we contains recursive reference
|
default |
|
default |
| void FAnimSegment::SetAnimReference | ( | UAnimSequenceBase * | InAnimReference, |
| bool | bInitialize = false |
||
| ) |
|
friend |
| float FAnimSegment::AnimEndTime |
Time to end playing the AnimSequence at.
| float FAnimSegment::AnimPlayRate |
Playback speed of this animation. If you'd like to reverse, set -1
|
protected |
Anim Reference to play - only allow AnimSequence or AnimComposite
| float FAnimSegment::AnimStartTime |
Time to start playing AnimSequence at.
| int32 FAnimSegment::LoopingCount |
| float FAnimSegment::StartPos |
Start Pos within this AnimCompositeBase