Does anyone know a way to clamp the viewport’s aspect ratio on a Windows shipping build?
Would like to prevent the player from increasing Y:X to anything greater than 1:1 (i.e. prevent Y resolution being larger than X).
I know there is a setting in Project Settings called “Allow Window Resize”, which can be unchecked, but I don’t want to prevent any resizing, just want to clamp the aspect ratio.
There is also a console command (r.setRes) which changes viewport resolution and can even be called from a blueprint. I can check the aspect ratio each time the screen resolution is changed, and use this console command to change the viewport dimensions. However my understanding is console commands don’t work with shipping builds (and this solution seems a little hacky anyway)
Anyone know a solution? Something obvious I’m missing?