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
| Parameters | Type | Explanation |
|---|---|---|
| Key | FString | Key for the configuration |
| DefaultVal | FString | Return value if retrieval fails, not mandatory |
| Project | FString | Default parameter, remains unchanged |
Code sample
UINTLSDKAPI::GetConfig("GAME_ID");