FTimeline

Windows
MacOS
Linux

Syntax

struct FTimeline

Constructors

Name Description

Public function

FTimeline()

Functions

Name Description

Public function

void

 

AddEvent

(
    float Time,
    FOnTimelineEvent EventFunc
)

Add a callback event to the timeline

Public function

void

 

AddInterpFloat

(
    UCurveFloat* FloatCurve,
    FOnTimelineFloat InterpFunc,
    FName PropertyName,
    FName TrackName
)

Add a float interpolation to the timeline

Public function

void

 

AddInterpFloat

(
    UCurveFloat* FloatCurve,
    FOnTimelineFloatStatic InterpFunc
)

Add a float interpolation to the timeline. Use a non-serializeable delegate.

Public function

void

 

AddInterpLinearColor

(
    UCurveLinearColor* LinearColor...,
    FOnTimelineLinearColorStatic Interp...
)

Add a linear color interpolation to the timeline. Use a non-serializeable delegate.

Public function

void

 

AddInterpLinearColor

(
    UCurveLinearColor* LinearColor...,
    FOnTimelineLinearColor InterpFunc,
    FName PropertyName,
    FName TrackName
)

Add a linear color interpolation to the timeline

Public function

void

 

AddInterpVector

(
    UCurveVector* VectorCurve,
    FOnTimelineVectorStatic InterpFunc
)

Add a vector interpolation to the timeline. Use a non-serializeable delegate.

Public function

void

 

AddInterpVector

(
    UCurveVector* VectorCurve,
    FOnTimelineVector InterpFunc,
    FName PropertyName,
    FName TrackName
)

Add a vector interpolation to the timeline

Public function Const

void

 

GetAllCurves

(
    TSet< class UCurveBase* >& In...
)

Get all curves used by the Timeline

Public function Const

float

 

GetPlaybackPosition()

Get the current playback position of the Timeline

Public function Const

float

 

GetPlayRate()

Get the current play rate for this timeline

Public function Static

UEnum *

 

GetTimelineDirectionEnum()

Helper function to get to the timeline direction enum

Public function Const

float

 

GetTimelineLength()

Get length of the timeline

Public function Const

bool

 

IsLooping()

Get whether we are looping or not

Public function Const

bool

 

IsPlaying()

Get whether this timeline is playing or not.

Public function Const

bool

 

IsReversing()

Get whether we are reversing or not

Public function

void

 

Play()

Start playback of timeline

Public function

void

 

PlayFromStart()

Start playback of timeline from the start

Public function

void

 

Reverse()

Start playback of timeline in reverse

Public function

void

 

ReverseFromEnd()

Start playback of timeline in reverse from the end

Public function

void

 

SetDirectionPropertyName

(
    FName InDirectionPropertyName
)

Set the delegate to call when timeline is finished

Public function

void

 

SetFloatCurve

(
    UCurveFloat* NewFloatCurve,
    FName FloatTrackName
)

Update a certain float track's curve

Public function

void

 

SetLinearColorCurve

(
    UCurveLinearColor* NewLinearCo...,
    FName LinearColorTrackName
)

Update a certain linear color track's curve

Public function

void

 

SetLooping

(
    bool bNewLooping
)

True means we whould loop, false means we should not.

Public function

void

 

SetNewTime

(
    float NewTime
)

Set the new playback position time to use

Public function

void

 

SetPlaybackPosition

(
    float NewPosition,
    bool bFireEvents,
    bool bFireUpdate
)

Jump to a position in the timeline.

Public function

void

 

SetPlayRate

(
    float NewRate
)

Sets the new play rate for this timeline

Public function

void

 

SetPropertySetObject

(
    UObject* NewPropertySetObject
)

Optionally provide an object to automatically update properties on

Public function

void

 

SetTimelineFinishedFunc

(
    FOnTimelineEvent NewTimelineFinishe...
)

Set the delegate to call when timeline is finished

Public function

void

 

SetTimelineFinishedFunc

(
    FOnTimelineEventStatic NewTimelineF...
)

Set the static delegate to call when timeline is finished

Public function

void

 

SetTimelineLength

(
    float NewLength
)

Set the length of the timeline

Public function

void

 

SetTimelineLengthMode

(
    ETimelineLengthMode NewMode
)

Sets the timeline length mode

Public function

void

 

SetTimelinePostUpdateFunc

(
    FOnTimelineEvent NewTimelinePostUpd...
)

Set the delegate to call after each timeline tick

Public function

void

 

SetVectorCurve

(
    UCurveVector* NewVectorCurve,
    FName VectorTrackName
)

Update a certain vector track's curve

Public function

void

 

Stop()

Stop playback of timeline

Public function

void

 

TickTimeline

(
    float DeltaTime
)

Advance the timeline, if playing, firing delegates

References

Module

Engine

Header

Runtime/Engine/Classes/Components/TimelineComponent.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback