Skip to main content

TimelineUpdater

A class in Alta.Timing.Runtime, Alta.Timing.

Hidden object that Timeline.Instance creates to drive the timeline with real time each frame. Kept across scene loads.

Constructors​

MemberWhat it is
TimelineUpdater()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private DateTime lastUpdateWall clock time of the last update.
private ITimeline timelineThe timeline being driven.

Methods​

2 private and internal methods
MemberWhat it is
private void Awake()Grabs the timeline, marks the object to survive scene loads and starts the clock.
private void Update()Advances the timeline by the real time passed since the last frame (wall clock, not Unity time).