FSimpleCurve::AddKey

Add a new key to the curve with the supplied Time and Value. Returns the handle of the new key.

Windows
MacOS
Linux

Override Hierarchy

FRealCurve::AddKey()

FSimpleCurve::AddKey()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Curves/SimpleCurve.h

Include

#include "Curves/SimpleCurve.h"

Source

/Engine/Source/Runtime/Engine/Private/Curves/SimpleCurve.cpp

Syntax

virtual FKeyHandle AddKey
(
    float InTime,
    float InValue,
    const bool bUnwindRotation,
    FKeyHandle KeyHandle
)

Remarks

Add a new key to the curve with the supplied Time and Value. Returns the handle of the new key.

Parameters

Parameter

Description

bUnwindRotation

When true, the value will be treated like a rotation value in degrees, and will automatically be unwound to prevent flipping 360 degrees from the previous key

KeyHandle

Optionally can specify what handle this new key should have, otherwise, it'll make a new one

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