Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc > API/Runtime/Core/Misc/FConfigCacheIni
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/ConfigCacheIni.h |
| Include | #include "Misc/ConfigCacheIni.h" |
int32 GetIntOrDefault
&40;
const TCHAR &42; Section,
const TCHAR &42; Key,
const int32 DefaultValue,
const FString & Filename
&41;
Remarks
Return a config value if found, if not found return default value does not indicate if return value came from config or the default value useful for one-time init of static variables in code locations where config may be queried too often, like : static int32 bMyConfigValue = GConfig->GetIntOrDefault(Section,Key,DefaultValue,ConfigFilename);