Where to store custom configs?

Where should I store custom configs. Like DefaultGame.ini but for my own purposes. And how can I read them?

In C++ you can define the file from which to read the config values for any specific class with the Config class specifier.

For example, the following will result in all the MyActorComponen’s variables flagged as Config being read from Config/DefaultMyGameConfig.ini.

UCLASS( ClassGroup = (Custom), Blueprintable, Config = MyGameConfig)
class COMBAT_API UMyActorComponent : public UActorComponent

Unfortunately, I haven’t found a way to override the default file (DefaultEngine.ini) in Blueprint.

The variables are filled automatically with the config values when the object instance is created.