I am trying to debug my main menu which sets video settings by executing console commands, e.g sg.AntiAliasing.
Problem is that I don’t know how to get the values when I run the game and printstring them.
Any ideas on how to achieve that?
I am trying to debug my main menu which sets video settings by executing console commands, e.g sg.AntiAliasing.
Problem is that I don’t know how to get the values when I run the game and printstring them.
Any ideas on how to achieve that?
Store the values as a variable after it’s set?
I believe that you’re trying to get the current AA setting whenever the game loads? I have been looking for such a function/command for a week now, but haven’t been able to find any. I’m not sure it’s possible to find?
One thing that might help you though; within the project folders (~/Config) you will be able to find a few .ini files. One of these (I’m not sure which as I’m not currently at my pc) has a property called “ScalabilitySettings”. You might be able to use this, though it isn’t set to anything on my end. Perhaps it is for you?
I want to check the values before I load them to see what are the defaults when the gameistance is created to check if my save file settings are being loaded correctly.
I don’t understand why the Unreal console cannot simply show the value when I type “sg.AntiAliasing”.
I completely understand what you mean. Simply typing the variable name should print out the current setting, just like Windows PowerShell does.
I would love to help you, but I’m struggling with this atm. as well.
Hope maybe an Unreal Engine dev can hope.
Just save the default value using the savegame and then update the savegame whenever you change it
sg.AntiAliasing is a “Settings Group”
It manipulates several other settings depending on where they are in a settings group. Under BaseScalibility.ini
Unless I am misunderstanding, I think you should be pulling get on the individual settings in a settings group. Probably find them by searching in the blueprint node search, without the prefix seen in the .ini.
I could be totally wrong to, I’ll find out here later as I am just about to configure some main menu options.
This does not answer my question as I have no problem changing nor storing these values.
Executing a console command and casting a into an array in savegame blueprint is not the problem.
I want to be able to check them by a printstring or something when they are loaded, which, to my knowledge, is not a possibility.