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
| Parameters | Type | Explanation |
|---|---|---|
| key | string | Key for the configuration |
| defValue | T | Return value if retrieval fails, not mandatory |
| project | string | Default parameter, remains unchanged |
Code sample
INTLAPI.GetConfig<STRING>("KEY", "");