FAnimationRuntime::GetKeyIndicesFromTime

Get Key Indices (start/end with alpha from start) with input parameter Time, NumFrames from % from StartKeyIndex, meaning (CurrentKeyIndex(float)-StartKeyIndex)/(EndKeyIndex-StartKeyIndex) by this Start-End, it will be between 0-(NumFrames-1), not number of Pos/Rot key tracks

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/AnimationRuntime.h

Include

#include "AnimationRuntime.h"

Source

/Engine/Source/Runtime/Engine/Private/Animation/AnimationRuntime.cpp

Syntax

static void GetKeyIndicesFromTime
(
    int32 & OutKeyIndex1,
    int32 & OutKeyIndex2,
    float & OutAlpha,
    const float Time,
    const int32 NumFrames,
    const float SequenceLength
)

Remarks

Get Key Indices (start/end with alpha from start) with input parameter Time, NumFrames from % from StartKeyIndex, meaning (CurrentKeyIndex(float)-StartKeyIndex)/(EndKeyIndex-StartKeyIndex) by this Start-End, it will be between 0-(NumFrames-1), not number of Pos/Rot key tracks

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss