GetConfig
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see GetConfig for Unreal Engine SDK.
If you were looking for the method for use with Unreal Engine, see GetConfig for Unreal Engine SDK.
Dynamically obtain configuration values. If the value of a key is not successfully set by calling UpdateConfig, the configuration in the .ini file will be returned. Otherwise, the value that is set dynamically will be returned.
Function definition
public static T GetConfig<T>(string key, T defValue, string project = "INTL")
Input parameters
Parameter | Type | Description |
---|---|---|
key | string | Configuration key |
defValue | T | Get the return value after failure, not mandatory |
project | string | Default parameters, keep unchanged |
Code sample
INTLAPI.GetConfig<string>("KEY", "");