Under Edit → Project Settings → Maps & Modes there is a field called “Default GameMode”. Does this only apply to the Editor?
#Config/DefaultEngine.ini
You can set the default game mode for all maps and the independent game instance using:
[/Script/EngineSettings.GameMapsSettings]
GameDefaultMap=/Game/Maps/Example_Map
EditorStartupMap=/Game/Maps/Example_Map
GlobalDefaultGameMode="/Script/YourGame.YourGameGameMode"
The above also sets the default map when running game from command prompt
Rama
Thanks Rama.
I noticed the setting for GlobalDefaultGameMode in DefaultGame.ini but did not have this in the DefaultEngine.ini . Do you know of somewhere in the documentation where the differences between the different ini’s and their settings is?