Set up
Source Code
Source Code Branches
There are 3 main branches.
- Release – The most stable branch. Tested by the Epic Games' QA team.
- Promoted – Latest stable features. Used by Epic Games's production teams.
- Master – Unstable branch. Updated live by the Epic Games' developers.
Prerequisites
Windows
Install Visual Studio 2017 or Visual Studio 2019 with the C++ workload.
macOS
Install Xcode 10.x.
Source Code Set up
- Download the source from GitHub.
- Run
Setup.bat(Windows) orSetup.command(macOS) to download the binary content for the engine and install the prerequisites.
- Run
GenerateProjectFiles.bat(Windows) orGenerateProjectFiles.command(macOS) to create the project files for the engine.
Compilation
Windows
- Open the
UE4.slnsolution file in Visual Studio.
- Select the
Development Editorconfiguration and theWin64platform.
- Build the solution (Project → Build).
- Run the
UE4project to start the Editor (Debug → Start Debugging).
macOS
- Open the
UE4.xcworkspaceworkspace file in Xcode.
- Select
ShaderCompileWorkerfor theMy Mactarget and build (Product → Build).
- Select
UE4for theMy Mactarget and build (Product → Build).
- Run
UE4to start the Editor (Product → Run).
Running the Editor
From a command prompt, navigate to the launcher folder.
Windows
Navigate to the binaries subfolder.
cd [Version]\Engine\Binaries\Win64To run the editor for a specific project file.
UE4Editor.exe "[Path][Name].uproject"macOS
Navigate to the binaries subfolder.
cd [Version]\Engine\Binaries\MacTo run the editor for a specific project file.
open UE4Editor.app --args "[Path]/[Name].uproject"