GetConfig
AndroidiOSWindows
If you were looking for the method for use with Unity, see GetConfig for Unity SDK.
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
Parameter | Type | Description |
---|---|---|
Key | FString | Configuration key |
DefaultVal | FString | Get the return value after failure, not mandatory |
Project | FString | Default parameters, keep unchanged |
Code sample
UINTLSDKAPI::GetConfig("GAME_ID");