This page covers how to create a GameMode Blueprint and set default values for it, how to assign a Default GameMode for your game, and how to override the Default GameMode through the World Settings and GameMode Override option.
The steps below will guide you in creating and setting up defaults for a Game Mode Blueprint.
For this example, we are using the Blueprint Third Person Template; however you can use any project you wish.
In the Content Browser, click on .
Select Blueprint under the Create Basic Asset section from the menu that appears.
Additional Types of Blueprints can be created from the Blueprints option under Create Advanced Asset.
Choose a Parent Class for your Blueprint.
See Parent Classes for info on selecting a Parent Class.
In the Pick Parent Class window, select the Game Mode Base Class. This is the parent class for all Game Modes.
Double-click on the Blueprint to open it, click the Class Defaults button to open the Blueprint Defaults in the Details panel.
Under the Game Mode are several options that you can set as the game's default settings (default character, HUD, etc.).
Here we are assigning the Character Blueprint called ThirdPersonCharacter as the Default Pawn Class for players to use in the game.
The Game Mode Blueprint points to existing Blueprints of the Character, HUD, PlayerController, Spectator, and Game State Classes. You will need to create these separately then specify them for use in the Game Mode Blueprint in order to actually use them in your game.
In the previous section, we created a Game Mode Blueprint. Once you have a Game Mode Blueprint, you can assign it as the Default Game Mode to use in your game. The steps below will guide you through assigning the Default Game Mode through the Project Settings option.
From the Main Editor Window, click the Edit button from the Menu Bar, then select Project Settings.
In the Project Settings window, click the Maps & Modes option.
In Maps & Modes under Default Modes, click the Default GameMode drop-down box and assign the GameMode you wish to use.
This will assign the GameMode you select as the Default Game Mode whenever the project is loaded.
If you click the arrow next to Selected GameMode, you will see the current settings used by the assigned GameMode.
Here we can see that ThirdPersonCharacter is being used as the Default Pawn Class.
When you have a Default Game Mode assigned, you can overwrite it on a per level basis through the World Settings menu under the GameMode Override section. The steps below will show you how to override the default Game Mode.
From the Main Editor Window, click the World Settings button from the Main Toolbar.
This will open the World Settings option which will appear in the bottom right window where the Details tab is located.
Inside the World Settings, under Game Mode, you can click the GameMode Override drop-down box to change the GameMode used.