I’m cross-posting here because my answerhub post is getting zero traction.
My project is a top-down space shooter played in a 2D plane with 3D assets. Because of the design of the game, I really, really, really want the screen to stay a specific aspect ratio. I would love for the engine to just letterbox whenever the actual screen/window is a different aspect ratio than I want.
How can I do this?
My project is:
- Local multiplayer
- NOT split-screen
- Using a PlayerCameraManager subclass with an Orthographic camera in blueprints
- A C++ project (though most of the game is in blueprints so far)
I have tried setting the “constrain aspect ratio” on the camera spawned by my PlayerCameraManager, but that has no effect.
When using the config below, I get:
- a stretched screen for [FONT=courier new]FullscreenMode of [FONT=courier new]0 (which is unpleasant)
- resolution ignored for [FONT=courier new]FullscreenMode of [FONT=courier new]1 (which is the incorrect aspect ratio on many monitors)
[/Script/Engine.GameUserSettings] bUseVSync=False ResolutionSizeX=1920 ResolutionSizeY=1080 //LastUserConfirmedResolutionSizeX=1920 //LastUserConfirmedResolutionSizeY=1080 WindowPosX=-1 WindowPosY=-1 // If you set this to true, the the resolution stuff above will be ignored bUseDesktopResolutionForFullscreen=False // 0 - True fullscreen // 1 - Windowed fullscreen // 2 - Windowed FullscreenMode=0 LastConfirmedFullscreenMode=0 Version=5