The following section describes how to download, compile, and launch UE4 from the Oculus GitHub repository using Visual Studio.
Professional developers who wish to take full advantage of the features available with the Oculus Unreal integration should download and build the Unreal Engine source code.
The following steps will walk you through acquiring Unreal Engine source code, and compiling the code.
Several of these steps may take some time to complete; some of the steps may take over an hour depending on your computer and the speed of your Internet connection.
C:\Unreal\4.xx-oculus
.You should unzip or clone the source code to a folder with a short path, or the next steps may fail. Alternately, you can map your install directory as a Windows drive to reduce the path length.
Setup.bat
. Click Yes to accept changes to your device if prompted.GenerateProjectFiles.bat
. By default, GenerateProjectFiles.bat
creates project files for Visual Studio 2017. If you have Visual Studio 2019 installed, use the -2019
flag (GenerateProjectFiles.bat -2019
) to generate project files compatible with Visual Studio 2019.UE4.sln
to open the project solution in Visual Studio. You may be prompted to install additional features for Unreal Engine development. Accept those changes.In Visual Studio, launch Configuration Manager by selecting Build > Configuration Manager. In Configuration Manager, set Active solution configuration to Development Editor, and Active solution platform to Win64. The following image shows an example.
In the Solution Explorer, right-click UE4 under Engine and select Set as Startup Project. The following image shows an example.
For more information, see Epic’s instructions on building the Unreal Engine from source: Building Unreal Engine from Source.