# Does "Config Variable" work in packaged game as well?

**URL:** <https://forums.unrealengine.com/t/does-config-variable-work-in-packaged-game-as-well/1329683>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [October 11, 2023, 7:23pm UTC](https://forums.unrealengine.com/t/does-config-variable-work-in-packaged-game-as-well/1329683 "2023-10-11T19:23:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VirtualSurrealism](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VirtualSurrealism](https://forums.unrealengine.com/u/VirtualSurrealism)\
**Post date:** [October 11, 2023, 7:23pm UTC](https://forums.unrealengine.com/t/does-config-variable-work-in-packaged-game-as-well/1329683/1 "2023-10-11T19:23:01Z")

</div>

Hi, Ticking the Config Variable in variable advance setting in the Blueprint makes it read from DefaultEngine.ini when in the project, but does it work for the packaged game as well or only for the Editor? and for packaged game i have to go C++ route?

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [October 11, 2023, 7:48pm UTC](https://forums.unrealengine.com/t/does-config-variable-work-in-packaged-game-as-well/1329683/2 "2023-10-11T19:48:14Z")

</div>

It all depends on where that variable is stored. What I would do is to start a blank project which packages quickly, tick the variable and see it it propagates.

Many studios go the route of creating their own .ini files for storing variables and save data. This may be of interest: [Configuration Files | Unreal Engine Documentation](https://docs.unrealengine.com/4.26/en-US/ProductionPipelines/ConfigurationFiles/)

---

<div class="post-metadata">

**Author:** ![VirtualSurrealism](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VirtualSurrealism](https://forums.unrealengine.com/u/VirtualSurrealism)\
**Post date:** [October 11, 2023, 9:17pm UTC](https://forums.unrealengine.com/t/does-config-variable-work-in-packaged-game-as-well/1329683/3 "2023-10-11T21:17:55Z")

</div>

Well I could not figure out where it was saving the variable, I ended up creating a C++ Gameinstance which reads the variable values from a custom ini file.
