![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Classes | |
| class | FConfigHistoryHelper |
| class | FCVarIniHistoryHelper |
Functions | |
| const TCHAR * | ConvertValueFromHumanFriendlyValue (const TCHAR *Value) |
| void | LoadCVarsFromFileForNextBoot (TMap< FString, FString > &OutCVars) |
| void | SaveCVarForNextBoot (const TCHAR *Key, const TCHAR *Value) |
| void | ApplyCVarsFromBootHotfix () |
| void | OnSetCVarFromIniEntry (const TCHAR *IniFile, const TCHAR *Key, const TCHAR *Value, uint32 SetBy, bool bAllowCheating, bool bNoLogging, FName Tag) |
| void | ApplyCVarSettingsFromIni (const TCHAR *InSectionName, const TCHAR *InIniFilename, uint32 SetBy, bool bAllowCheating, FName Tag) |
| void | ForEachCVarInSectionFromIni (const TCHAR *InSectionName, const TCHAR *InIniFilename, TFunction< void(IConsoleVariable *CVar, const FString &KeyString, const FString &ValueString)> InEvaluationFunction) |
| void | RecordApplyCVarSettingsFromIni () |
| void | ReapplyRecordedCVarSettingsFromIni () |
| void | DeleteRecordedCVarSettingsFromIni () |
| void | RecordConfigReadsFromIni () |
| void | DumpRecordedConfigReadsFromIni () |
| void | DeleteRecordedConfigReadsFromIni () |
Variables | |
| UE::Tasks::FPipe | AsyncTaskPipe (TEXT("SaveHotfixForNextBootPipe")) |
| TUniquePtr< FCVarIniHistoryHelper > | IniHistoryHelper |
| TUniquePtr< FConfigHistoryHelper > | ConfigHistoryHelper |
| CORE_API void UE::ConfigUtilities::ApplyCVarSettingsFromIni | ( | const TCHAR * | InSectionBaseName, |
| const TCHAR * | InIniFilename, | ||
| uint32 | SetBy, | ||
| bool | bAllowCheating = false, |
||
| FName | Tag = NAME_None |
||
| ) |
Helper function to read the contents of an ini file and a specified group of cvar parameters, where sections in the ini file are marked [InName]
| InSectionBaseName | - The base name of the section to apply cvars from |
| InIniFilename | - The ini filename |
| SetBy | anything in ECVF_LastSetMask e.g. ECVF_SetByScalability |
When boot the game, use this function to apply cvars from last saved file from hotfix
| CORE_API const TCHAR * UE::ConfigUtilities::ConvertValueFromHumanFriendlyValue | ( | const TCHAR * | Value | ) |
Helper function to deal with "True","False","Yes","No","On","Off"
Helper function to clean up config read history
Helper function to clean up ini history
Helper function to dump config reads to csv after RecordConfigReadsFromIni was called
| CORE_API void UE::ConfigUtilities::ForEachCVarInSectionFromIni | ( | const TCHAR * | InSectionName, |
| const TCHAR * | InIniFilename, | ||
| TFunction< void(IConsoleVariable *CVar, const FString &KeyString, const FString &ValueString)> | InEvaluationFunction | ||
| ) |
Helper function to operate a user defined function for each CVar key/value pair in the specified section in an ini file
| InSectionName | - The name of the section to apply cvars from |
| InIniFilename | - The ini filename |
| InEvaluationFunction | - The evaluation function to be called for each key/value pair |
| CORE_API void UE::ConfigUtilities::OnSetCVarFromIniEntry | ( | const TCHAR * | IniFile, |
| const TCHAR * | Key, | ||
| const TCHAR * | Value, | ||
| uint32 | SetBy, | ||
| bool | bAllowCheating = false, |
||
| bool | bNoLogging = false, |
||
| FName | Tag = NAME_None |
||
| ) |
Single function to set a cvar from ini (handing friendly names, cheats for shipping and message about cheats in non shipping)
UE_BUILD_SHIPPING
Helper function to reapply inis which have been applied after RecordCVarIniHistory was called
CVAR Ini history records all calls to ApplyCVarSettingsFromIni and can re run them Helper function to start recording ApplyCVarSettings function calls uses these to generate a history of applied ini settings sections
Helper function to start recording config reads
| UE::Tasks::FPipe UE::ConfigUtilities::AsyncTaskPipe(TEXT("SaveHotfixForNextBootPipe")) | ( | TEXT("SaveHotfixForNextBootPipe") | ) |
| TUniquePtr<FConfigHistoryHelper> UE::ConfigUtilities::ConfigHistoryHelper |
| TUniquePtr<FCVarIniHistoryHelper> UE::ConfigUtilities::IniHistoryHelper |