Load custom cheat console variable from ini file

Hello,

I have a fairly simple question. I know console variables can be set in ini file, for example in the following form in DefaultEngine.ini

[ConsoleVariables]
my.custom.var=666

However this will not work for variables flagged ECVF_Cheat, even if the build is in debug mode.

The code that prevents this even mentions this in the comments in FConsoleManager::AddConsoleObject line 1300.

Any solution for having useful cheat variables for developpers settable in ini files ?

I’m running into this problem too. It really defeats the usefulness of that ini file for me. I only want it for setting cheats in editor.

The comment in the function literally says

// TODO: This is not ideal as it also prevents consolevariables.ini to set the value where we allow that. We could fix that.

So please do fix this, Epic!