Creating and Setting Up a Blank C++ Project
At the start of every project, you might want to start with any of the templates provided by Epic (which contain ready-to-execute basic code) and build on top of that. Most/some of the time, you might need to set up a blank or an empty project that you can mold and sculpt to your requirements. We'll learn how to do that in the following exercise.
Exercise 2.01: Creating an Empty C++ Project
In this exercise, you will learn how to create an empty C++ project from the template provided by Epic. This will serve as the foundation for many of your future C++ projects.
The following steps will help you complete this exercise:
- Launch Unreal Engine 4.24 from the Epic Games Launcher.
- Click on the
Games
section and clickNext
. - Make sure the
Blank
project template is selected and clickNext
. - Click the
Blueprint
section dropdown and selectC++
.Note
Make sure the project folder and project name are specified with an appropriate directory and name, respectively.
When everything is set up, click on the
Create Project
button. In this case, our project directory is inside a folder calledUnrealProjects
, which is inside theE
drive. The project name is set toMyBlankProj
(it is recommended that you follow these names and project directories, but you can use your own if you wish to do so).Note
The project name cannot have any spaces in it. It is preferable to have an Unreal directory as close to the root of a drive as possible (to avoid running into issues such as the 256-character path limit when creating or importing assets into your project's working directory; for small projects, it may be fine, but for more large-scale projects, where the folder hierarchy may become too complex, this step is important).
You will notice that after it's done generating code and creating the project files, the project will be opened, along with its Visual Studio solution (
.sln
) file.Note
Make sure the Visual Studio solution configuration is set to Development Editor and that the solution platform is set to Win64 for Desktop development:
By completing this exercise, we now know how to create an empty C++ project on UE4, along with its considerations.
In the next section, we'll be talking a bit about the folder structure, along with the most basic and most used folder structure format that's used by Unreal developers.