Navigation
API > API/Plugins > API/Plugins/OnlineServicesCommon > API/Plugins/OnlineServicesCommon/Online > API/Plugins/OnlineServicesCommon/Online/UE__Online__LoadConfig
References
| Module | OnlineServicesCommon |
| Header | /Engine/Plugins/Online/OnlineServices/Source/OnlineServicesCommon/Public/Online/OnlineConfig.h |
| Include | #include "Online/OnlineConfig.h" |
namespace UE
{
namespace Online
{
template<typename T>
auto UE&58;&58;Online&58;&58;LoadConfig
&40;
IOnlineConfigProvider & Provider,
const TArray< FString > & SectionHeirarchy,
const TCHAR &42; Key,
T & Value
&41;
}
}
Remarks
Populate a struct from a config provider. Iterates through each section in SectionHierarchy, loading the struct from the value of the given key in the given config section. Requires that the type metadata is specified for StructType, and that the config value is in config struct syntax. true if any values were loaded
Parameters
| Name | Description |
|---|---|
| Provider | The config provider |
| SectionHeirarchy | The config sections to load values from |
| Key | The key in the config section where the struct resides |
| Value | The struct whose fields will be loaded from config |