Skip to main content

Get Configuration (GetConfig)

AndroidiOSPC

If you are using the Unity engine, please refer to GetConfig for Unity SDK.

Dynamically retrieve configuration values.If UpdateConfig is not called successfully to set the value of a given key, the configuration from the .ini file is returned; otherwise, the dynamically set value is returned.

Function definition​

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static FString GetConfig(const FString Key, const FString DefaultVal = "", const FString Project = "INTL");

Input Parameters​

ParametersTypeExplanation
KeyFStringKey for the configuration
DefaultValFStringReturn value if retrieval fails, not mandatory
ProjectFStringDefault parameter, remains unchanged

Code sample​

UINTLSDKAPI::GetConfig("GAME_ID");