I’ve created a console variable in C++ code. As follows:
void AGuideCine::BeginPlay()
{
Super::BeginPlay();
IConsoleManager::Get().RegisterConsoleVariable(TEXT("r.GuideAudioFF"),
0,
TEXT("Decides whether to fast forward(FF) when the Guide is playing audio.\n")
TEXT(" 0: FF off\n")
TEXT(" 1: FF on\n"),
ECVF_Scalability | ECVF_RenderThreadSafe);
ConsoleVarGuideAudioFF = IConsoleManager::Get().FindConsoleVariable(TEXT("r.GuideAudioFF"));
}
However, I don’t know how to load the console variable value from an .ini file, which I want to specify as the default value.