Skip to main content

GetConfig

AndroidiOSWindows
If you were looking for the method for use with Unity, see GetConfig for Unity 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

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

Input parameters

ParameterTypeDescription
KeyFStringConfiguration key
DefaultValFStringGet the return value after failure, not mandatory
ProjectFStringDefault parameters, keep unchanged

Code sample

UINTLSDKAPI::GetConfig("GAME_ID");