Skip to main content

Get Configuration (GetConfig)

AndroidiOSWindows
If you're using Unreal Engine, see the GetConfig for 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", "");