When we setup our Basic Code project in the previous step, Unreal Engine created a Game Mode for us. Game Modes define a game's rules and win conditions. Our Game Mode also sets default classes that will be used for some basic gameplay framework types, including Pawn, PlayerController, and HUD. During this step, we're going to use the Editor to open our solution in Visual Studio so that we can view our project's Game Mode class.
In the File menu, select Open Visual Studio to open your C++ code in Visual Studio.
After Visual Studio opens up your C++ code, you should be able to see the CPP and header files inside of Visual Studio's Solution Explorer.
By now, you should have the following code inside of
Also, you should have the following code inside of
class FPSPROJECT_API AFPSProjectGameMode : public AGameModeBase
Now that you've opened your C++ project in Visual Studio, you're ready to start adding code to the project.