Skip to main content

Get Configuration (GetConfig)

AndroidiOSPC

If you are using Unreal Engine, please refer to GetConfig in the Unreal Engine SDK.

Dynamically retrieve configuration values.If you have not successfully called UpdateConfig to set the value for a certain key, the value from the ini file will be returned; otherwise, the dynamically set value will be returned.

Function definition​

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

Input Parameters​

ParametersTypeExplanation
keystringKey for the configuration
defValueTReturn value if retrieval fails, not mandatory
projectstringDefault parameter, remains unchanged

Code sample​

INTLAPI.GetConfig<STRING>("KEY", "");