The following section describes how to download, compile, and launch UE4 from the Oculus GitHub repository using Visual Studio 2015 or 2017.
Professional developers who wish to take full advantage of the features available with our Unreal integration should download and build the source code.
This guide assumes you have installed Visual Studio 2015 or 2017 and are familiar with its use.
Note: Visual Studio 2013 and earlier are no longer supported.
Several of these steps may take some time to complete. Some of the steps typically take over an hour, depending on your computer and the speed of your Internet connection.
C:\Unreal\4.xx-oculus. We recommend installing to a short path, or you may have errors in the next step with files that exceed the Windows length limit for file names. Alternately, you can map your install directory as a Windows drive to reduce the path length.
Setup.bat. You may need to Run as Administrator.
GenerateProjectFiles.bat. You may need to Run as Administrator. By default,
GenerateProjectFiles.batcreates project files for Visual Studio 2017. If you are using Visual Studio 2015, you must use the
UE4.slnto open the project solution in Visual Studio.
In the menu bar, select Build > Configuration Manager. Verify that Active solution configuration is set to Development Editor, and that Active solution platform is set to Win64.
In the Solution Explorer, right-click UE4 under Engine and select Set as Startup Project.
For Epic’s instructions on building the Unreal Engine from source, see Building Unreal Engine from Source guide.