Hi,
How should I toggle fullscreen mode while the game is running.
An example would be when changing the game settings.
Alt+Enter
Can it be done automatically without pressing anything
Here is some code that will do that:
UGameUserSettings* MyGameSettings = GEngine->GetGameUserSettings();
MyGameSettings->SetFullscreenMode(EWindowMode::Fullscreen);
MyGameSettings->ApplySettings(true);
Hope this helps!
Mick
isn’t GEngine only available when working with the editor and does nothing when the game is packaged?
No it works anywhere (but it some cases it can be NULL), even engine it self use it without Editor code filtring
yes it works as expected. One more question - when a game is not running at the native screen resolution is there a way to get around the black edges