Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Curves > API/Runtime/Engine/Curves/FSimpleCurve
- 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 |
virtual FKeyHandle AddKey
&40;
float InTime,
float InValue,
const bool bUnwindRotation,
FKeyHandle KeyHandle
&41;
Remarks
Add a new key to the curve with the supplied Time and Value. Returns the handle of the new key.
Parameters
| Name | 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 |