
上QQ阅读APP看书,第一时间看更新
Getting ready
To see the effects of changing one of the classes, we have to actually be using the class. Unreal automatically creates one of these classes for us by default (AChapter01_GameModeBase), so for this simple example, we will make use of it.
Note that everywhere you see Chapter01 in the recipes in this chapter, I am referring to the project name, and if yours is named differently, you may see different text.
- From the Unreal Editor, go to Edit | Project Settings. Select the Maps & Modes option under the Project section.
- Under Default GameMode, select Chapter01_GameMode:

Note that the class name is AChapter01_GameModeBase in code, while in Unreal's menus it doesn't have the A. This is because Unreal's naming convention for classes always adds an A to classes that inherit from the Actor class. We will discuss this in greater detail later on in this book.
A game mode is a class that will contain the rules of your game type.
For more information on game modes, check out https://docs.unrealengine.com/en-US/Gameplay/Framework/GameMode.