Hi,
Been Googling for hours and can’t see a solution to the below issue:
How to keep aspect ratio of scene when resizing game’s windows on standalone player & WebGL?
(game’s default screen size is: 360 x 640)
Any ideas?
Thanks!
Jesse
Hi,
Been Googling for hours and can’t see a solution to the below issue:
How to keep aspect ratio of scene when resizing game’s windows on standalone player & WebGL?
(game’s default screen size is: 360 x 640)
Any ideas?
Thanks!
Jesse
You mean when you allow the player to use the OS-level drag-to-resize-window functionality? I’m not sure if it’s possible to control the window’s aspect ratio when doing that, but you could always letterbox your content within the available window.
If you are changing the size of the window yourself from code, then obviously you can enforce any constraint you want with some appropriate math.
I asked question wrong…
I mean how do I scale the game’s window to keep aspect ratio after a window resize?
Let me know, thanks!
Jesse
If I maximize the game’s window, the Frames Per Second text is not located properly?
See screenshot below:
Jesse
Well, how are you scaling the rest of your content, and what are you doing differently with your FPS text?
this is fixed. Was the “Anchor Preset” - setting to center fix it, thanks!