Skip to main content

GetConfig

AndroidiOSWindows
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

ParameterTypeDescription
keystringConfiguration key
defValueTGet the return value after failure, not mandatory
projectstringDefault parameters, keep unchanged

Code sample

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