UInterpTrackMove::GetKeyframePosition

Get the position of a keyframe given its key index.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Matinee/InterpTrackMove.h

Include

#include "Matinee/InterpTrackMove.h"

Source

/Engine/Source/Runtime/Engine/Private/Interpolation.cpp

Syntax

void GetKeyframePosition
(
    UInterpTrackInst * TrInst,
    int32 KeyIndex,
    float & OutTime,
    FVector & OutPos,
    FVector * OutArriveTangent,
    FVector * OutLeaveTangent
)

Remarks

Get the position of a keyframe given its key index. Also optionally retrieves the Arrive and Leave tangents for the key. This function respects the LookupTrack.

Parameters

Parameter

Description

TrInst

TrackInst to use for lookup track positions.

KeyIndex

Index of the keyframe to get the position of.

OutTime

Final time of the keyframe.

OutPos

Final position of the keyframe.

OutArriveTangent

Pointer to a FVector to store the arrive tangent in, can be NULL.

OutLeaveTangent

Pointer to a FVector to store the leave tangent in, can be NULL.

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