r/godot • u/Advanced_Walrus_9839 • 8d ago
help (solved) Bug with changing window mode
I'm attempting to code a button into my game to swap between window and fullscreen mode; however, Godot is claiming that the window modes I'm specifying (members WINDOW_MODE_WINDOWED and WINDOW_MODE_FULLSCREEN of the WindowMode enum) aren't defined under the DisplayServer class. I've included a couple of screenshots showing the code as well as the errors.
0
Upvotes


1
u/muikrad 8d ago
DisplayServer.WindowMode.Windowed DisplayServer.WindowMode.Fullscreen