UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FDeltaTimeRecord Struct Reference

#include <AnimationAsset.h>

Public Member Functions

void Set (float InPrevious, float InDelta)
 
void SetPrevious (float InPrevious)
 
float GetPrevious () const
 
bool IsPreviousValid () const
 
 FDeltaTimeRecord ()=default
 
 FDeltaTimeRecord (float InDeltaTime)
 

Public Attributes

float Delta = 0.f
 

Detailed Description

Used when sampling a given animation asset, this structure will contain the previous frame's internal sample time alongside the 'effective' delta time leading into the current frame.

An 'effective' delta time represents a value that has undergone all side effects present in the corresponding asset's TickAssetPlayer call including but not limited to syncing, play rate adjustment, looping, etc.

For montages Delta isn't always abs(CurrentPosition-PreviousPosition) because a Montage can jump or repeat or loop

Constructor & Destructor Documentation

◆ FDeltaTimeRecord() [1/2]

FDeltaTimeRecord::FDeltaTimeRecord ( )
default

◆ FDeltaTimeRecord() [2/2]

FDeltaTimeRecord::FDeltaTimeRecord ( float  InDeltaTime)
inlineexplicit

Member Function Documentation

◆ GetPrevious()

float FDeltaTimeRecord::GetPrevious ( ) const
inline

◆ IsPreviousValid()

bool FDeltaTimeRecord::IsPreviousValid ( ) const
inline

◆ Set()

void FDeltaTimeRecord::Set ( float  InPrevious,
float  InDelta 
)
inline

◆ SetPrevious()

void FDeltaTimeRecord::SetPrevious ( float  InPrevious)
inline

Member Data Documentation

◆ Delta

float FDeltaTimeRecord::Delta = 0.f

The documentation for this struct was generated from the following file: