The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

+1 vote

Is this possible? I'm interested in seeing if you could add a backdrop to the all black border around the viewport during runtime.

in Engine by (242 points)

Not quiet clear for me what is your goal, but maybe a screen-space shader would do the job.

He is talking about the black borders that show if you set your aspect ratio to be fixed, because then if the screen/window size doesn't match, Godot creates black borders that can't be drawn into (and I don't know how tbh, maybe there is a hack I don't know of :p).

This issue talks about the reverse in order to avoid borders:

Someone else tried to adress black margins too, but it wasn't accepted. There is a discussion though

I was referring to the black void around the game window when the app is full screen. Apologies for not including specifics. But yes, I was interested to see if I could place a border around the game window. Seems like this may not be the case for now, though. Thanks for the information.

1 Answer

0 votes

Hi there,
I've played this game made with Godot 2 and it is responsive.

So it must be possible to catch the event of resize_screen (pick to right one ^^) and replace the elements in there, or use containers ?

In the game above there is event the particles moving on the screen, in fact all the graphics fill the window. Play with it in windowed mode and resize it!

by (14 points)
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.