resolution and window mode
After looking on AnswerHub I found 4 possible ways to set the desired resolution and windowed mode (windowed or fullscreen) for your packaged game:
Create a file DefaultGameUserSettings.ini and put it in your project's Config directory. Now when you package your game, it will run at the correct resolution (and windowed/fullscreen mode) based on the settings in the .ini file.
(The .ini file seems to be inaccessible after you package the game so the player can't edit it and tweak the settings. I could be wrong but I didn't find a way to edit the .ini file after packaging.)
Package the game as you normally would and then manually add a GameUserSettings.ini file to: WindowsNoEditor\MyProject\Saved\Config\WindowsNoEditor
(This is a lot like option 1 except now the player can manually edit the .ini file to enter the resolution and windowed mode they want.)
*Sample contents of the .ini file can be found here: https://answers.unrealengine.com/questions/51623/how-to-fullscreen-packaged-build.html
In game menu level blueprint BeginPlay add a "Execute Console Command" node and run a command (for example):
where w is for windowed mode and f is for fullscreen mode.
In C++ code in your GameMode's BeginPlay:
Then you can use this pointer to change the resolution and settings in C++ code. The documentation for that class can be found here: http://api.unrealengine.com/INT/API/Runtime/Engine/GameFramework/UGameUserSettings/index.html
So what is the recommeneded way to set the resolution and windowed mode for your packaged game? Should we be editing that .ini file manually?
asked Mar 17 '18 at 11:15 PM in Packaging & Deployment
You can also use command line parameters when you run the game exe (`-ResX=1280 -ResY=720 -WINDOWED`).
I don't think any of these is the "right" way to do it. You can allow some combination but ultimately there should be a settings menu in-game that lets the user change these things.
I found this. I think it would be a good place to start. He uses console commands (the video is a bit old) but now there are some new nodes. I know of at least one ("SetOverallScalabilityLevel"). Matt Wadstein has a video on it here and I'm sure he has videos on any other scalability node that is available.
answered Mar 18 '18 at 12:07 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here