How to force a 16:9 aspect ratio.

Is there a way to force an aspect ratio in a game? Basically all of my widgets are partially off screen or arranged wrong when testing on a Steam Deck since it has a 16:10 aspect ratio. I’ve tried using a size box but I can’t make it the parent of my canvas panels. Is there a project setting to force 16:9 resolution or some other solution I’m not aware of?

Hello @PopsArcade

I will try to help you with your issue, could you give more information with screenshots on how you have your widgets set up?
The first thing coming to mind could be the anchors of your widgets

I wish Jedi Survivor devs asked that question too :confused:

Context if you’re interested (That game’s also made with UE btw)

I don’t know how to take screenshots on a steam deck but the game is in 16:10 instead of 16:9. I just want to force 16:9.

Can you check how your widget anchors are set up in editor?
Maybe your anchors might be assigned wrong? for example if its a upper left UI element you could anchor it to the top left side of the canvas panel.

1 Like

Yep, use anchors and offsets, not absolute positions. Quite easy to test by just running the game in editor and resizing the screen.

1 Like