# Custom INI parameters

**URL:** <https://forums.unrealengine.com/t/custom-ini-parameters/1227854>\
**Category:** C++\
**Tags:** ini, settings, unreal-engine, config, Blueprint, CPP, question\
**Created:** [July 13, 2023, 8:02am UTC](https://forums.unrealengine.com/t/custom-ini-parameters/1227854 "2023-07-13T08:02:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [July 13, 2023, 1:39pm UTC](https://forums.unrealengine.com/t/custom-ini-parameters/1227854/2 "2023-07-13T13:39:37Z")

</div>

> [@How to store variables to a custom .ini file?](https://forums.unrealengine.com/t/how-to-store-variables-to-a-custom-ini-file/330274/6):
>
> This is an old question but I was having the same problem and happened across the solution, so I figured I’d post it for posterity. Here’s how it works: Your c++ class definition should look like this. UCLASS(config=NewConfigFileName) class YOURGAME\_API AExample : public AActor { GENERATED\_BODY() UPROPERTY(Config) int32 test\_number; UPROPERTY(Config) FString test\_string; } Edit: Oh and I almost forgot, you can have other properties in your UPROPERTY declarati…

---

_[View the full topic](https://forums.unrealengine.com/t/custom-ini-parameters/1227854)._
