I’m trying to use the UGameplayStatics::OpenLevel method:
FString levelURL = FString(OpenLevelOptionsKeyConstants::LevelAlias::Key + "=" + LevelAlias.ToString());
// Open the base level and pass through the requested level to the GameMode (The game) to be digested by that class instead
UGameplayStatics::OpenLevel(this, StartLevelGameMode->BaseLevelName, true, levelURL);
Here is the LevelAlias::Key constant:
const FString OpenLevelOptionsKeyConstants::LevelAlias::Key = FString("LevelAlias");
Essentially, the Options string ends up being: "LevelAlias=LevelFileName"
And yet I get the following error:
There seems to be an absence of documentation of the FString Options format.
Source code of GameplayStatics.cpp::OpenLevel:
https://github.com/EpicGames/UnrealEngine/blob/b70f31f6645d764bcb55829228918a6e3b571e0b/Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp#L676
UGameplayStatics::OpenLevel:
FURL:
Question:
What is the format for Options when using UGameplayStatics::OpenLevel ?