Hello, I have set my project up with a settings menu which works well. It retrieves and sets the user’s desired settings which are saved to disk.
How do I set the DEFAULT user settings? The settings that the user gets when they first install the game, and what is set when you use the “Set to Defaults” node. I can’t find an answer for this anywhere. There are a few nodes that come up with the search for getting the defaults of things like screen resolution (oddly the results do not include all settings), but nothing for setting the defaults. I can’t find anything in project settings either.
But if you don’t change anything, how does the engine know what settings to apply at first launch?
Is there a way to get optimal settings based on the user’s machine?
“Does Save Game Exist”
False> Create Save Game
True> Load saved variables/settings
Settings changed “SaveToSlot”
Is there a way to get optimal settings based on the user’s machine? Yes
At first launch it either uses normal or what you had your viewport set to, i can’t remember package and see
in the exe settings for the packaged project you can also specify -windowed ( also can set a specific resolution etc ) and it’ll initially launch as a window, kinda useful if your making more of a splashUi/GameLauncher thing, then when you click play or start or whatever you just load up the users settings and if they had Fullscreen set it’ll go fullscreen
Thanks. By “first launch” I meant the very first time the game is launched on the machine after install.
I know there’s a hardware benchmark node, but how would you run that ONLY the very first time the game is launched after being installed, not any other time after that?
Thanks. But the problem with that is that if the user installs the game on a different machine, from steam for example, and then steam downloads all their saves, than it won’t perform a hardware benchmark since the save says it has already.
Wish there would be a way to save information to a simple text file or something, like GameUserSettings does.