Exit Fullscreen Resolution to windowed

I’m using UMG and execute console commands to set the resolution to fullscreen but I wanted to know how to set it back to windowed mode while ingame. Also below is a way for anybody wanting to know how to set it to fullscreen-

Example: You just add a lower case f at the end like below
r.setRes 720 x480f


For switching to windowed mode just replace “f” with “w”

r.setRes 720 x480f - for full screen.

r.setRes 720 x480w - for windowed mode.

Great! thank you!