Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/TimelineComponent.h |
| Include | #include "Components/TimelineComponent.h" |
Syntax
struct FTimeline
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTimeline () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddEvent
(
float Time, |
Add a callback event to the timeline | |
| void | AddInterpFloat
(
UCurveFloat* FloatCurve, |
Add a float interpolation to the timeline | |
| void | AddInterpFloat
(
UCurveFloat* FloatCurve, |
Add a float interpolation to the timeline. Use a non-serializeable delegate. | |
| void | AddInterpLinearColor
(
UCurveLinearColor* LinearColorCurve, |
Add a linear color interpolation to the timeline. Use a non-serializeable delegate. | |
| void | AddInterpLinearColor
(
UCurveLinearColor* LinearColorCurve, |
Add a linear color interpolation to the timeline | |
| void | AddInterpVector
(
UCurveVector* VectorCurve, |
Add a vector interpolation to the timeline. Use a non-serializeable delegate. | |
| void | AddInterpVector
(
UCurveVector* VectorCurve, |
Add a vector interpolation to the timeline | |
| void | GetAllCurves
(
TSet< class UCurveBase* >& InOutCurves |
Get all curves used by the Timeline | |
| float | Get the current playback position of the Timeline | ||
| float | GetPlayRate () |
Get the current play rate for this timeline | |
| float | Get length of the timeline divided by the play rate | ||
| UEnum * | Helper function to get to the timeline direction enum | ||
| float | Get length of the timeline | ||
| bool | IsLooping () |
Get whether we are looping or not | |
| bool | IsPlaying () |
Get whether this timeline is playing or not. | |
| bool | IsReversing () |
Get whether we are reversing or not | |
| void | Play () |
Start playback of timeline | |
| void | Start playback of timeline from the start | ||
| void | Reverse () |
Start playback of timeline in reverse | |
| void | Start playback of timeline in reverse from the end | ||
| void | SetDirectionPropertyName
(
FName InDirectionPropertyName |
Set the delegate to call when timeline is finished | |
| void | SetFloatCurve
(
UCurveFloat* NewFloatCurve, |
Update a certain float track's curve | |
| void | SetLinearColorCurve
(
UCurveLinearColor* NewLinearColorCurve, |
Update a certain linear color track's curve | |
| void | SetLooping
(
bool bNewLooping |
True means we whould loop, false means we should not. | |
| void | SetNewTime
(
float NewTime |
Set the new playback position time to use | |
| void | SetPlaybackPosition
(
float NewPosition, |
Jump to a position in the timeline. | |
| void | SetPlayRate
(
float NewRate |
Sets the new play rate for this timeline | |
| void | SetPropertySetObject
(
UObject* NewPropertySetObject |
Optionally provide an object to automatically update properties on | |
| void | SetTimelineFinishedFunc
(
FOnTimelineEvent NewTimelineFinishedFunc |
Set the delegate to call when timeline is finished | |
| void | SetTimelineFinishedFunc
(
FOnTimelineEventStatic NewTimelineFinishedFunc |
Set the static delegate to call when timeline is finished | |
| void | SetTimelineLength
(
float NewLength |
Set the length of the timeline | |
| void | SetTimelineLengthMode
(
ETimelineLengthMode NewMode |
Sets the timeline length mode | |
| void | SetTimelinePostUpdateFunc
(
FOnTimelineEvent NewTimelinePostUpdateFunc |
Set the delegate to call after each timeline tick | |
| void | SetVectorCurve
(
UCurveVector* NewVectorCurve, |
Update a certain vector track's curve | |
| void | Stop () |
Stop playback of timeline | |
| void | TickTimeline
(
float DeltaTime |
Advance the timeline, if playing, firing delegates |