Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/FCurveSequence
Description
Add a new curve relative to the current end of the sequence. Makes stacking easier. e.g. doing AddCurveRelative(0,5); AddCurveRelative(0,3); Is equivalent to AddCurve(0,5); AddCurve(5,3)
| Name | AddCurveRelative |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Animation/CurveSequence.h |
| Include Path | #include "Animation/CurveSequence.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Animation/CurveSequence.cpp |
FCurveHandle AddCurveRelative
(
const float InOffset,
const float InDurationSecond,
const ECurveEaseFunction InEaseFunction
)
Parameters
| Name | Remarks |
|---|---|
| InOffset | Offset from the last curve in the sequence. |
| InDurationSecond | How long this curve lasts. |
| InEaseFunction | Easing function to use for this curve. Defaults to Linear. Use this to smooth out your animation transitions. |