GameUserSettings not working?

Hello, prepping the graphical options for my game, and I can’t seem to get GameUserSettings working at all in the editor.

I’ve followed a bunch of tutorials and tried a bunch of things, but code like
GEngine->GameUserSettings->GetDefaultResolution();
GEngine->GameUserSettings->GetDefaultResolutionScale();
GEngine->GameUserSettings->GetResolutionScaleInformationEx(scaleNorm, scale, scaleMin, scaleMax)

Always return either 0, or inf. I can’t seem to use GameUserSettings at all within the editor, and packaging takes a few hours so that’s not something I’d be able to properly test on.

I’ve followed this guide, and many other things found online without any success.
https://impetus-games.com/blog/Persistent-Graphics-Settings-in-UE4

Is there a different way to use GameUserSettings within the editor, or some updated guide somewhere I may have missed?

Thanks!

Hello Juice-Tin,

I’m not familiar with pulling from this config file as of yet, but from looking through that tutorial you linked, they seem to be getting a reference to GameUserSettings, storing it, and then using it to refer to the variables directly when getting information from it rather than using Get functions to do so. Have you tried doing something similar to what they did with their GetVideoQualitySettings() function where they refer directly to the variables by way of

Settings->ScalabilityQuality.AntiAliasingQuality;

wherein “Settings” is set with GetGameUserSettings();?

We haven’t heard from you in a while, Juice-Tin. Are you still experiencing this issue? If so, have you tried what I mentioned in my previous comment? In the meantime, I’ll be marking this as resolved for tracking purposes.