You might try something like:
if( fullscreen ) Screen.fullScreenMode = FullScreenMode.ExclusiveFullScreen;
else Screen.fullScreenMode = FullScreenMode.Windowed;
Though I'm more used to godot myself.
Hey there! Thanks for sticking by and for your suggestion! Will try this surely!