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,
T & Value
&41;
}
}
Remarks
Populate a struct from a config provider. Iterates through each section in SectionHierarchy, loading each field in the struct by matching field names with keys in the section. Requires that the type metadata is specified for StructType true if any values were loaded
Parameters
| Name | Description |
|---|---|
| Provider | The config provider |
| SectionHeirarchy | The config sections to load values from |
| Value | The struct whose fields will be loaded from config |