UE4 and C++ development-How to set the first protagonist in a C++ project? (Method 2: Create a new game mode)

1. (Method 2: Create a new game mode), select the blueprint class, GameModeBase< /span>

1,2 Good namesBP_GameModel

2. Open the project settings

2.1The default mode of the gameSelect the newly createdBP_GameModel, which can control the pause of the game, etc. Status, who is the default player of the game?

2.2. Default protagonistPawnClassSelect BlueprintBP_SpaceShip

2.3, top page pawn also DisEnable setting 1st bottom

2.4. Extra in the scenePlayer Start is the position of the protagonist

Guess you like

Origin blog.csdn.net/2201_75598244/article/details/132892896