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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
callback |
(state, deltaSeconds) => void |
priority? |
number |
Returns
Section titled “Returns”void