Timeline
\ Concept
Representation of time use to sync the animation of objects.
Properties
Active If true, timeline is playing. If false, timeline is stopped.
TimeScale Slows down or speeds up time
Methods
getTimeElapsedFromLastTick Returns time elapsed since the last tick
isPlaying Returns true if the Timeline is active and playing (i.e. the parent universe is active as well)
isSyncing Returns the sync status. Syncing occurs when the time changes abruptly and is not contiguous from last tick
rewind Rewinds the timeline to the beginning
getPlayTime Returns the current play time
setPlayTime Sets the current play time
getLastPlayTime Returns the play time of last frame
getPlayTimeElapsedFromLastTick Returns the elapsed time from last frame
calculateNormalizedTickRate Converts the given per second rate value to a normalized per tick value adjusted by the actual frame rate
getGlobalTimeScale Returns the global time scale considering all parent timelines
enableUISnapToBPM
disableUISnapToBPM
isUISnapToBPMEnabled
setUISnapBPM
getUISnapBPM
snapTime
getTracks Gets the timeline tracks for sequenced animation
Events
onTick Emitted per frame when playing