FCurveSequence::AddCurveRelative

Add a new curve relative to the current end of the sequence.

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Animation/CurveSequence.h

Include

#include "Animation/CurveSequence.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Animation/CurveSequence.cpp

Syntax

FCurveHandle AddCurveRelative
(
    const float InOffset,
    const float InDurationSecond,
    const ECurveEaseFunction InEaseFunction
)

Remarks

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)

Parameters

Parameter

Description

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.