stopTime method

void stopTime()

Completely stops time for the managed page.

While stopped, neither the page nor any of its descendants are updated at all, which saves computational resources. The page keeps rendering, and pending lifecycle events (adding or removing components) still complete, since those are processed by the game rather than by the update pass.

Implementation

void stopTime() => timeScale = 0;