[UE4]GameMode

GameMode defines the rules of the game being played, points, etc. Some data and logic in the game are not suitable for a certain object, and these data persist throughout the game (for example: points, ranking).

Every time the game starts, GameMode is created. GameMode can record data that exists throughout the life cycle of the game. GameMode and GameInstance have a one-to-one correspondence. The custom GameMode should inherit from GameModeBase.

 Set the "Default Pawn Class" to add "Player Start" to the scene, and the Pawn created by GameMode by default will appear at the "Player Start" position.

If more than one "Player Start" is placed in the game, the engine will randomly select a "Player Start" as the player's birth starting point when running the game

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325298039&siteId=291194637