bUseVSync/GameUserSettings.INI-Can I change it via blueprints or C++ only?

Hello,

I am trying to manipulate the GameUserSettings.ini file via blueprint. Using blueprints, I am able to use a console command to manipulate ResolutionSizeX and Y, and FullscreenMode.

Is there a console command to change the bools TRUE/FALSE setting, i.e. “bUseVSync” or “bUseDesktopResolutionForFullscreen”?

I’m far from being a programmer but if I have to, how could I expose these variable to blueprints so I can change them using Visual Studio if there isn’t a console command available.

I tried r.VSync but I don’t believe that is correct. It doesn’t actually update the “bUseVSync” line in the ini files. I would like to expose these variables so I can give the player the ability to change these options.

[/Script/Engine.GameUserSettings]

bUseVSync=True

ResolutionSizeX=1360

ResolutionSizeY=768

LastUserConfirmedResolutionSizeX=1600

LastUserConfirmedResolutionSizeY=900

WindowPosX=-1

WindowPosY=-1

bUseDesktopResolutionForFullscreen=False

FullscreenMode=0

LastConfirmedFullscreenMode=2

Version=5

Thank you for your help.

As soon as I get this working I will be making a tutorial on how to incorporate a settings option using UMG. Thanks.

I don’t know if it works, but try the same exact variable name you put in the INI file - bUseVsync.

So Blueprint console node “bUseVsync=False” (or True).

I have no idea if that will work, but it’s worth a try.

Hi n00854180t,

I asked the question also on Answerhub. Someone mentioned using C++.
https://answers.unrealengine.com/questions/85374/busevsyncgameusersettingsini-can-i-change-it-via-b.html
So it looks like I may have to create my own function to do it. Looks like I will be learning C++.

I believe I tried what you mentioned but I will give it another shot to see if it changes anything.

Thanks