503
1.创建BP_GameMode继承GameMode
2.打开BP_GameMode,将default Pawn改为BP_ MyPawn
3.在世界设置中替换为自己的BP_GameMode
4.在源文件构造函数中添加代码:
AutoPossessPlayer = EAutoReceiveInput::Player0;
503
1.创建BP_GameMode继承GameMode
2.打开BP_GameMode,将default Pawn改为BP_ MyPawn
3.在世界设置中替换为自己的BP_GameMode
4.在源文件构造函数中添加代码:
AutoPossessPlayer = EAutoReceiveInput::Player0;