time namespace

Manages script execution and engine time.

Time methods and properties allow you to

Methods

schedule(self, func: Callable[[], None], delay: float) -> Disposable

Executes a function after a delay.

schedule_repeating(self, func: Callable[[deltaTime: float], None], period: float) -> Disposable

Repeats execution of a function every period.

schedule_repeating(self, func: Callable[[deltaTime: float], None]) -> Disposable

Repeats execution of a function every frame.

Properties

readonly current_time float