UpdateConfig
[Player Network SDK & MSDK] Update configuration dynamically.
Supported Platform
- Unity
- Unreal Engine
Supports
Android, iOS, Windows
platform.Supports
Android, iOS, Windows
platform.note
MSDK currently does not support Windows.
Function Definition
- Unity
- Unreal Engine
bool UpdateConfig(Dictionary<string, string> configsDic, string project = "")
static bool UpdateConfig(const std::map<std::string, std::string> &config, const std::string &project = "");
Input Parameters
- Unity
- Unreal Engine
Parameter | Type | Description |
---|---|---|
configsDic | Dictionary<string, string> | Configuration content |
project | string | Default parameter, keep unchanged |
Parameter | Type | Description |
---|---|---|
config | std::map<std::string, std::string> | Configuration content |
project | std::string | Default parameter, keep unchanged |
Code Sample
- Unity
- Unreal Engine
Dictionary<string, string> config = new Dictionary<string, string>();
config.Add("LOG_LEVEL", "1");
UnionAdapterAPI.GetToolsService()::UpdateConfigs(config);
std::map<std::string, std::string> config;
config.Add("LOG_LEVEL", "1");
GUA_NAMESPACE::GUAToolsService::UpdateConfig(config);