Is it possible to get the screen resolution either in code or with logic nodes, or will there be a feature for this later?
Yes, it is possible in code. To get full display resolution:
var displayIndex = 0; // There can be multiple displays/monitors, take the first one
var w = kha.Display.width(displayIndex);
var h = kha.Display.height(displayIndex);
To get window dimensions, ie what the game is running in:
var w = kha.System.windowWidth();
var h = kha.System.windowHeight();
I think there is no logic node for this yet, can put that in!
1 Like
Can be now also retrieved via Window Info
and Display Info
logic nodes using git version. (Patch)
4 Likes