Setting up a new Unreal project

Now that you have both Unreal and Visual Studio downloaded and installed, we're going to create a project for our game.

Unreal comes with a variety of starter kits that you can use, but for our game, we'll be scripting everything from scratch.

After signing into Epic Games Launcher, you'll first want to download the Unreal Engine. This book uses version 4.12. You may use a later version, but depending on the version, some code and the navigation of the engine may slightly differ. The steps for creating a new project are as follows:

  1. Firstly, in the Unreal Engine tab, select Library. Then, under Engine Versions, click on Add Versions and select the version you'd like to download.
  2. After the engine has downloaded, click on the Launch button.
  3. Once the Unreal Engine has launched, click on the New Project tab. Then, click on the C++ tab and select Basic Code.
  4. Finally, choose a location for your project and give it a name (in my case, I named the project RPG).

In my case, after the project was created, it automatically closed the engine and opened Visual Studio. At this point, I've found it best to close Visual Studio, go back to Epic Games Launcher, and relaunch the engine. Then, open your new project from here. Finally, after the editor has launched, go to File | Open Visual Studio.

The reason for this is because, while you can launch the editor by compiling your Visual Studio project, in some rare cases you may have to close the editor any time you want to compile a new change. If, on the other hand, you launch Visual Studio from the editor (rather than the other way around), you can make a change in Visual Studio and then compile the code from within the editor.

At this point, you have an empty Unreal project and Visual Studio that are ready to go.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.172.130