Skip to main content

Get Configuration (GetConfig)

[Player Network SDK & MSDK] Dynamically obtain configuration values.If a key’s value has not been successfully set via GUAUpdateConfig, the value from the ini file is returned; otherwise, the dynamically set value is returned.

Supported platforms

Supports Android, iOS, Windows platform.
note

MSDK currently does not support Windows

Function Definition

T GetConfig<T>(string key, T defValue, string project = "INTL")

Input Parameters

ParametersTypeDescription
keybool, int, stringConfigured Key
defValuebool, int, stringReturn value if retrieval fails, optional input
projectStringDefault parameter, remains unchanged

Code example

UnionAdapterAPI.GetToolsService().GetConfig<string>("key");