# How to set up settings

**URL:** <https://forums.unrealengine.com/t/how-to-set-up-settings/362420>\
**Category:** Blueprint\
**Tags:** settings, unreal-engine, CPP, Blueprint, question\
**Created:** [June 29, 2016, 2:27pm UTC](https://forums.unrealengine.com/t/how-to-set-up-settings/362420 "2016-06-29T14:27:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ignisor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ignisor](https://forums.unrealengine.com/u/Ignisor)\
**Post date:** [June 29, 2016, 2:27pm UTC](https://forums.unrealengine.com/t/how-to-set-up-settings/362420/1 "2016-06-29T14:27:14Z")

</div>

Hi.

I would like to know how to edit, store and use the game settings. How to change and apply the video settings? How to add a parameter (eg volume of the music), and save it, so that after entering the game, value is saved. And how to read this value?

Thanks.

P. s. Sorry for my English.  
P. s. s. It does not matter by C ++ or BP.

---

<div class="post-metadata">

**Author:** ![Ignisor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ignisor](https://forums.unrealengine.com/u/Ignisor)\
**Post date:** [October 16, 2016, 12:20pm UTC](https://forums.unrealengine.com/t/how-to-set-up-settings/362420/2 "2016-10-16T12:20:43Z")

</div>

If someone will look for the same.  
Here how i done this.

In c++ i created static functions like this:

**.h:**

```
// Music volume:
UFUNCTION(BlueprintCallable, Category = Config)
static void SetMusicVolume(float Value);

UFUNCTION(BlueprintCallable, Category = Config)
static float GetMusicVolume();

```

**.cpp:**

```
void UrooMazeStaticLibrary::SetMusicVolume(float Value)
{
	FString Section = "Audio";
	GConfig->SetFloat(*Section, TEXT("MusicVolume"), Value, GGameIni);
}

float UrooMazeStaticLibrary::GetMusicVolume()
{
	float Value = 0;
	FString Section = "Audio";
	GConfig->GetFloat(*Section, TEXT("MusicVolume"), Value, GGameIni);
	return Value;
}

```

It can be easily used in BPs.
