+1 vote

Why there is no option like keep with expand future? I mean still "center viewport" but let expand viewport instead create black bars?

in Engine by (95 points)

1 Answer

0 votes

The 2d stretch mode and expand stretch aspect (added in Godot 3.0) is probably what you want, see Multiple resolutions in the documentation. Keep in mind you still need to set up your UI anchors properly so that controls move as expected as the window is resized.

by (12,727 points)

Thanks for answer! But 2d/expand mode, it not center main viewport, just expand it on right or down side, why this not center white box that when we see blue, there would be blue, white, blue where blue bars are equal and these same with red bars?enter image description here

I just want this same result as 2d/keep, but instead black bars, should be expand on both screen sides

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.