# How to work with DefaultGameUserSettings.ini?

**URL:** <https://forums.unrealengine.com/t/how-to-work-with-defaultgameusersettings-ini/611342>\
**Category:** C++\
**Tags:** unreal-engine, CPP, UE4-27, question\
**Created:** [July 22, 2022, 12:46am UTC](https://forums.unrealengine.com/t/how-to-work-with-defaultgameusersettings-ini/611342 "2022-07-22T00:46:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Owl\_Theory](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Owl\_Theory](https://forums.unrealengine.com/u/Owl_Theory)\
**Post date:** [July 22, 2022, 12:46am UTC](https://forums.unrealengine.com/t/how-to-work-with-defaultgameusersettings-ini/611342/1 "2022-07-22T00:46:05Z")

</div>

I’m using UE4.27.2.

I’m designing an options menu and I’d like to use DefaultGameUserSettings to store default values for each option.

First question: How would I add my own custom parameters to the default ini file? I assumed using UPROPERTY(config) would do the trick, but that only adds it to “GameuserSettings.ini”.

Second, what is the best approach to resetting options? Is there a way to overwrite the values in GameUserSettings.ini with the values in DefaultGameUserSettings.ini? If not, then is there a way to read options from the default file one-by-one? I’ve experimented with this:

```auto
FString defaultGameUserSettings = "../../../Project/Config/DefaultGameUserSettings.ini";

LoadConfig(GetClass(), *defaultGameUserSettings);

GConfig->GetFloat(*defaultGameUserSettings, TEXT("MasterVolume"), MasterVolume, defaultGameUserSettings);

```

However, this doesn’t work, as MasterVolume isn’t being assigned the value I set in the default ini.

Any ideas?

---

<div class="post-metadata">

**Author:** ![FS-DanC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FS-DanC](https://forums.unrealengine.com/u/FS-DanC)\
**Post date:** [August 14, 2026, 4:09pm UTC](https://forums.unrealengine.com/t/how-to-work-with-defaultgameusersettings-ini/611342/2 "2026-08-14T16:09:07Z")

</div>

If anyone is still interested, the first param should be the section name, something like “/Script/Project.ProjectGameUserSettings”
