I'm trying to implement a button in my menu which toggles fullscreen on and off.
Basically, I want clicks of the button to toggle the
fullscreen property from Project Settings > Display > Window , but I can't figure out how to reference it.
ProjectSettings.get_setting("size/fullscreen"), but it wasn't a correct reference.
I also notice that there's an
OS.window_fullscreen, but I'm not sure if that's the same as the property listed in Project Settings.
I want to work with this property from Project Settings rather than get and set resolutions of the screen and viewport directly.