Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Animation
Inheritance Hierarchy
- TSharedFromThis
- FCurveSequence
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Animation/CurveSequence.h |
| Include | #include "Animation/CurveSequence.h" |
Syntax
struct FCurveSequence : public TSharedFromThis< FCurveSequence >
Remarks
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() );
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor | |||
FCurveSequence
(
const float InStartTimeSeconds, |
Construct by adding a single animation curve to this sequence. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Makes sure the active timer is unregistered |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FCurveHandle | AddCurve
(
const float InStartTimeSeconds, |
Add a new curve at a given time and offset. | |
| FCurveHandle | AddCurveRelative
(
const float InOffset, |
Add a new curve relative to the current end of the sequence. | |
| const FCurveSequence::FSlateCurve & | GetCurve
(
int32 CurveIndex |
||
| float | GetLerp () |
For single-curve animations, returns the interpolation alpha for the animation. | |
| float | |||
| bool | IsAtEnd () |
Is the sequence at the end? | |
| bool | IsAtStart () |
Is the sequence at the start? | |
| bool | IsForward () |
||
| bool | IsInReverse () |
||
| bool | IsLooping () |
Is the sequence looping? | |
| bool | IsPlaying () |
Checks whether the sequence is currently playing. | |
| void | JumpToEnd () |
Jumps immediately to the end of the animation sequence | |
| void | JumpToStart () |
Jumps immediately to the beginning of the animation sequence | |
| void | Pause () |
Pause this curve sequence. | |
| void | Play
(
const FTickerDelegate& InDelegate, |
Plays the curve sequence for a ticker, rather than a widget. | |
| void | Play
(
const TSharedRef< SWidget >& InOwnerWidget, |
Start playing this curve sequence. Registers an active timer with the widget being animated. | |
| void | PlayRelative
(
const TSharedRef< SWidget >& InOwnerWidget, |
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 | |
| void | PlayReverse
(
const TSharedRef< SWidget >& InOwnerWidget, |
Start playing this curve sequence in reverse. | |
| void | Resume () |
Unpause this curve sequence to resume play. | |
| void | Reverse () |
Reverse the direction of an in-progress animation | |
| void | SetStartTime
(
double InStartTime |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FSlateCurve | A curve has a time offset and duration. |