Learning about the Unreal gameplay framework classes
The Unreal gameplay framework includes four classes, PlayerController, GameModeBase, GameState, and GameInstance, playing vital roles in managing various aspects of gameplay and overall game functionality. The first two classes are usually created automatically when a project is generated, while the remaining classes need to be manually added to the project.
Locating and creating gameplay framework classes in Pangaea
If you go to the All | C++ Classes | Pangaea folder, you should find that the project already has PangaeaGameMode and PangaeaPlayerController classes (see Figure 5.16). These two classes were created when the game project was initiated:
Figure 5.16 – The existing PangaeaGameMode and PangaeaPlayerController C++ classes
PangaeaPlayerController inherits from PlayerController, and PangaeaGameMode inherits from GameModeBase.
In addition to the existing PangaeaGameMode and PangaeaPlayerController...