autoTick property

bool autoTick
final

Whether to drive a repaint every frame with an internal Ticker.

Leave true (the default) for animated content. Set false for a static scene that only needs to repaint when the app rebuilds the view (for example with a new camera).

It can change over the view's life, to pause a view that is hidden, say. Turning it back on continues the view's elapsed time from where it stopped, and the first onTick after that reports a zero delta.

The scene's own step is separate. Scene.render advances components and animations by the wall time since it last ran, the time spent off included, unless the app calls Scene.update itself.

Implementation

final bool autoTick;