Choose your operating system:
Windows
macOS
Linux
| TSharedFromThis
|
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Animation/CurveSequence.h |
Include |
#include "Animation/CurveSequence.h" |
struct FCurveSequence : public TSharedFromThis< FCurveSequence >
A sequence of curves that can be used to drive animations for slate widgets. Active timer registration is handled for the widget being animated when calling play.
Each curve within the sequence has a time offset and a duration. This makes FCurveSequence convenient for crating staggered animations. e.g. We want to zoom in a widget, and then fade in its contents. FCurveHandle ZoomCurve = Sequence.AddCurve( 0, 0.15f ); FCurveHandle FadeCurve = Sequence.AddCurve( 0.15f, 0.1f ); Sequence.Play( this->AsShared() );
Name | Description | |
---|---|---|
|
FCurveSequence() |
Default constructor |
|
FCurveSequence ( |
Construct by adding a single animation curve to this sequence. |
Name | Description | |
---|---|---|
|
~FCurveSequence() |
Makes sure the active timer is unregistered |
Name | Description | ||
---|---|---|---|
|
AddCurve ( |
Add a new curve at a given time and offset. |
|
|
AddCurveRelative ( |
Add a new curve relative to the current end of the sequence. |
|
|
const FCurve... |
GetCurve ( |
|
|
float |
GetLerp() |
For single-curve animations, returns the interpolation alpha for the animation. |
|
float |
GetSequenceTime() |
|
|
IsAtEnd() |
Is the sequence at the end? |
|
|
IsAtStart() |
Is the sequence at the start? |
|
|
IsForward() |
||
|
IsInReverse() |
||
|
IsLooping() |
Is the sequence looping? |
|
|
IsPlaying() |
Checks whether the sequence is currently playing. |
|
|
JumpToEnd() |
Jumps immediately to the end of the animation sequence |
|
|
JumpToStart() |
Jumps immediately to the beginning of the animation sequence |
|
|
Pause() |
Pause this curve sequence. |
|
|
Play ( |
Plays the curve sequence for a ticker, rather than a widget. |
|
|
Play ( |
Start playing this curve sequence. |
|
|
PlayRelative ( |
Plays forward if it can, otherwise holds it at the end of the animation, if we play in reverse it will reverse the animation if it can |
|
|
PlayReverse ( |
Start playing this curve sequence in reverse. |
|
|
Resume() |
Unpause this curve sequence to resume play. |
|
|
Reverse() |
Reverse the direction of an in-progress animation |
|
|
SetStartTime ( |
Name |
Description |
|
---|---|---|
|
FSlateCurve |
A curve has a time offset and duration. |