Get Configuration (GetConfig)
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");