Unreal Engine Game State and Game Mode
GameIn any game, there are game rules that need to be tracked such as how many players can join a game, where they spawn in the game, and what actions they game perform. There are also things the game needs to keep track of, such as the completion of certain objectives, or changes to the game like placing items, building or destroying things, that need to be shared with other players. In this post, I am going to explain the purpose and use of two objects in Unreal Engine 4: Game State and Game Mode. Game Mode There are now two built-in classes in Unreal Engine 4 that handle the Game Mode. They are GameModeBase and GameMode. GameModeBase is the ultimate base class for all GameMode objects. The internal names of the classes are AGameModeBase and AGameMode. AGameModeBase contains basic game mode functionality and AGameMode contains additional capabilities that are applicable to standard shooter type games and adventure games. If you need more spec...