Build Unreal Engine from Source

Following section serves as guidance on how to build Unreal Engine from source.

Updated about 3 years ago

Install Visual Studio Community 2019 & 2022

As the very first thing I recommend installing Visual Studio Community 2019 & Visual Studio Preview 2022.

Visual Studio Community 2022 serves the sole purpose of building Unreal Engine, as it is noticeably faster in that than Visual Studio 2019.

Visual Studio Community 2019 will be your actual IDE to code in, as Visual Studio 2022 isn't Unreal Engine ready yet.

Both feature the same installer, this setup is enough for now.

VS2017_SettingsInstaller.jpg

Visual Studio might recognize missing components automatically at a later point, in that case it will install them for you trouble-free and very easy.

Download Unreal Engine Source

Decide whether you want to download Unreal Engine 4 or 5.

Screenshot_3.png

Unzip them to one of your hard drives and give them more readable names.

Unreal Engine Folders.png

Name has to be between 6-24 characters.

Build Unreal Engine

Inside your folder click the folder-path and replace it with cmd, press Enter.

folder path.pngcmd written.pngcmd.png

Type Setup.bat

Type GenerateProjectFiles.bat -2019 or GenerateProjectFiles.bat -2022

Open the generated .sln file with Visual Studio, preferably Visual Studio Preview 2022

sln file.png

Press Clean

clean.png

Press Build

build.png

Set as Startup project

set as start project.png

Press Debug

press debug.png

A warning of this look could appear the first time you open Visual Studio, go ahead and install the missing components

missing components.png