0 votes

I wrote this code to make my game fullscreen and back to windowed during runtime in the script of my main menu. But it doesn't seem to work even when I press the key in Main Menu

The Code
In case you are unable to see the image here is the code:

func process(delta: float) -> void:
if Input.is
actionjustpressed("FullScreen"):
if ProjectSettings.getsetting("display/window/size/fullscreen"):
ProjectSettings.set
setting("display/window/size/fullscreen", false)
else:
ProjectSettings.set_setting("display/window/size/fullscreen", true)

in Engine by (50 points)

1 Answer

0 votes
Best answer
by (21,692 points)
selected by
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.