Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

useUnscaledFrame

useUnscaledFrame(callback, priority?): void

useFrame on the wall clock: the callback gets the wall’s seconds since the last frame whatever the time scale, so it runs on behind a pausing modal and at full speed under the devtools’ slow motion, as Unity’s Time.unscaledDeltaTime and Godot’s PROCESS_MODE_ALWAYS do. It is for what a player drives or reads while the world holds: a camera, a menu drawn in the canvas, a frame counter. Every other view takes useFrame, whose seconds hold and slow with the world.

Parameter Type
callback (state, deltaSeconds) => void
priority? number

void