How to lock the aspect ratio of the viewport?

How to lock the aspect ratio of the viewport, but the window resolution is changeable, like this

Long time since you asked this, but for those coming later, I think this is probably what you are looking for: Set Constraint Aspect Ratio | Unreal Engine Documentation

That will make it so that there will be black bars if the aspect ratio and the current resolution don’t match.

1 Like