How to enter in fullscreen/windowed mode?

I try to make a very simple main menu.

Following epic tutorial i create some “execute console command” in widget blueprint for my main menu (as r.setRes); but when i try to create a button for “Enter in Fullscreen” i fail. I create an “execute console command” with command “r.FullscreenMode 0” (no result with r.FullscreenMode 1 or 2)

Where is my error?

Just create a console command with the command “fullscreen”. This alternate between fullscreen and windowed, so if the player is in windowed mode, it’ll change to fullscreen and vice versa.

Hope that helps! :slight_smile:

Yes! Thx for your response…

But… why if i try to insert command “fullscreen” on ingame consolle command, it not appear on command list?

You’re welcome! :slight_smile:

But I don’t know why isn’t listed on ingame console commands… Did it work on blueprint?

fullscreen dont work.
At least in 4.15

fullscreen switches between windowed and borderless windowed(which isn’t fullscreen).
r.FullscreenMode doesn’t work either in 4.22.
r.setRes 1920x1080f sets it to fullscreen.