TExcelTAD
Home › Unreal Engine 5 with C++ › Toolkit: Getting the Engine

Toolkit: Getting the Engine

There are two ways to get Unreal Engine 5: the binary build from the Epic Games Launcher, or a source build you compile yourself from Epic's GitHub repository. Most people start with the launcher. Studios usually end up on source.

Option 1: the Epic Games Launcher (binary)

  1. Install the Epic Games Launcher and sign in with an Epic account.
  2. Open the Unreal Engine tab, then Library.
  3. Next to Engine Versions, click + and choose a 5.x version, then Install. Under Options you can skip target platforms you don't need (Android, iOS, Linux cross-compiling) and save many gigabytes.
  4. Launch it, pick a template (Third Person is the best first project), choose C++ instead of Blueprint, and create the project.

The launcher build is precompiled, so you can't change engine code, but you can write C++ in your project and in project plugins. Several engine versions can be installed side by side, and each .uproject records which one it uses (EngineAssociation).

Tip: Leave plenty of disk space. An engine install takes tens of gigabytes, and every project adds Intermediate/, Saved/ and DerivedDataCache/ folders that grow into more gigabytes. An SSD makes the editor and shader compiles much faster.

Option 2: a source build from GitHub

The engine's full C++ source is on GitHub in the EpicGames/UnrealEngine repository, which is private. To see it you link your accounts:

  1. Create a GitHub account.
  2. Sign in at unrealengine.com, open your account settings, go to Connections → Accounts and Connect GitHub. Accept the EULA and authorize the EpicGames app.
  3. Accept the email invitation to join the @EpicGames GitHub organization (it expires after a few days).
  4. Now https://github.com/EpicGames/UnrealEngine opens for you. A 404 means the linking isn't finished.

Then build it:

bash
# Windows (Developer PowerShell or cmd), from the folder you cloned into
git clone --branch release --depth 1 https://github.com/EpicGames/UnrealEngine.git UE5
cd UE5
Setup.bat                  # downloads binary dependencies (several GB) and installs prerequisites
GenerateProjectFiles.bat   # creates UE5.sln
# open UE5.sln, choose "Development Editor" + "Win64", build the UE5 project, then run it (F5)
Branch Use it for
release the latest official release; the normal choice
version branches / tags (5.x) pinning one release for a team
ue5-main Epic's live development; newest features, may not compile

Why studios use source builds:

  • Fixing or patching the engine (and carrying the patch until Epic fixes it).
  • Dedicated servers: a server target (MyGameServer.Target.cs) needs a source-built engine.
  • Debugging into the engine with full symbols and the ability to change code.
  • Pinning an exact version that every developer and the build machine share.

The cost: the first build takes an hour or more, and every engine update is a merge. Small teams commonly keep one person in charge of building and distributing the engine (as an installed build, made with the BuildGraph script) so everyone else doesn't compile it.

Licensing

Unreal is free to download and use. Commercial products owe Epic a royalty above a revenue threshold, and Epic has changed its terms over the years (non-game industries have a seat licence, for example). Check the current EULA and licence terms on unrealengine.com before you ship. The source on GitHub is covered by the same EULA, not an open-source licence, so you may not publish it.

Windows, macOS and Linux

OS Status
Windows 10/11 The main platform. Almost every studio, tutorial and plugin assumes it. Visual Studio or Rider.
macOS Supported through the launcher; needs Xcode. Fine for learning and for shipping to Apple platforms; fewer third-party plugins ship Mac binaries.
Linux Supported, but a smaller community. Epic offers a precompiled Linux editor as a .zip download (Epic account required) and the source build works (./Setup.sh, ./GenerateProjectFiles.sh, make). Epic's docs list Ubuntu 22.04 as the recommended distribution, with Rocky/RHEL 8+ as the minimum. Expect to solve some problems yourself: some marketplace (Fab) plugins have no Linux binaries, and GPU drivers matter.

Linux matters professionally for dedicated servers, which are usually built for Linux even when the team develops on Windows. Windows developers cross-compile them with Epic's Linux cross-compile toolchain.

Checking that it works

A C++ project is set up correctly when:

  1. The editor opens the Third Person template without asking to rebuild modules.
  2. Your IDE builds the project's Development Editor configuration with zero errors.
  3. A change to a .cpp file applies with Live Coding (Ctrl+Alt+F11) while the editor runs.

The next lesson sets up the IDE that does steps 2 and 3.

A model: which engine does this project use?

The .uproject file is JSON, and its EngineAssociation field names the engine: a version such as "5.5" for a launcher install, or a GUID that points at a registered source build. This little program models how the launcher-side lookup resolves it.

cpp · try it yourself
#include <iostream>
#include <map>
#include <string>

int main() {
    // Engines registered on this machine: launcher installs by version, source builds by GUID.
    std::map<std::string, std::string> installed = {
        {"5.5", "C:/Program Files/Epic Games/UE_5.5"},
        {"5.6", "C:/Program Files/Epic Games/UE_5.6"},
        {"{4F1C2A9E-SOURCE}", "D:/Engines/UE5-studio"},
    };
    for (std::string assoc : {"5.6", "{4F1C2A9E-SOURCE}", "5.3"}) {
        auto it = installed.find(assoc);
        std::cout << "EngineAssociation " << assoc << " -> "
                  << (it != installed.end() ? it->second : "not installed: prompt to pick or install an engine") << "\n";
    }
}
EngineAssociation 5.6 -> C:/Program Files/Epic Games/UE_5.6
EngineAssociation {4F1C2A9E-SOURCE} -> D:/Engines/UE5-studio
EngineAssociation 5.3 -> not installed: prompt to pick or install an engine

On Windows you can switch a project's engine by right-clicking the .uproject file and choosing Switch Unreal Engine version….

Test yourself

What must you do before github.com/EpicGames/UnrealEngine stops returning 404?

  1. Pay for a licence
  2. Link your GitHub account in your Epic account settings and accept the EpicGames organization invite
  3. Star the repository
  4. Install the launcher

Which is a common reason for a team to switch to a source-built engine?

  1. Blueprints need it
  2. Building a dedicated server target or patching engine code
  3. It has a smaller download
  4. Live Coding only works with it

Which statement about Linux is accurate?

  1. Unreal does not run on Linux
  2. Linux is supported (binary download or source build) but has a smaller community and fewer plugin binaries; it is common for dedicated servers
  3. Linux is Epic's primary development platform
  4. Only Blueprint projects work on Linux