Is there a way to find the maximum window size for the device you're using, during runtime and then setting the window to that size?
Hey farflamex,
I'm not sure if this is what you're looking for, but the Browser object has expressions for screen width and height, as well as a "Request fullscreen" action.
Thanks. Actually I think just WindowWidth and the Viewport options do also correctly show the screen size, on phones at least. I'm tinkering around with a phone game but wasn't quite sure how the screen sized itself, but I think it's permanently set to whatever the max size of the phone is... I think.
i think you can use this :
width : ViewportLeft()+ ViewportRight()
height : ViewportBottom() + ViewportTop()
Develop games in your browser. Powerful, performant & highly capable.
i think you can use this : width : ViewportLeft()+ ViewportRight() height : ViewportBottom() + ViewportTop()
More like ViewportRight()-ViewportLeft()
ViewportBottom()-ViewportTop()
(With the layer as a parameter)