What it does
screen.getWindowHeight reads WindowHeight on a screen object. It takes no arguments.
Signature
screen.getWindowHeight()Arguments
It takes none.
Example · generated
function update(dt) { const windowHeight = screen.getWindowHeight();}screen.getWindowHeight is called with values of the shape its signature asks for. The code sits in update(dt), which the engine calls every frame: dt is the time since the last one, in seconds.