Is there a way to find out real screen height on mobile?

I’ve got mobile with 1080p screen. Gdevelop’s ScreenHeight() option shows 360p

this helped:
runtimeScene.getVariables().get(“wys”).setNumber(window.screen.height * window.devicePixelRatio);
where wys is scene variable.
And then set screen resolution to height:Variable(wys)

1 Like