Unreal Engine fork

This method requires deep understanding of how the Unreal Engine works. You will build your own Varjo UE engine, which would have better performance compared to other methods.

1. Clone the Varjo Unreal Engine

Create folder in preferred place (for example C:\sources) for the Unreal source and go there.

Clone the Varjo Unreal Engine github repository.

Note: Access to the Varjo Unreal Engine repository is granted to developers who already have access to the Unreal Engine mainline github repository. Developers who would like to sign up for the Unreal Engine repository via github can follow the instructions on the official page.

2. Download dependencies

Run /UnrealEngine-<version>/Setup.bat to download all the dependencies. This may take a while as there is around 5 GB to be downloaded. 

Agree with the prompt about project type if it pops up.

3. Building Unreal Engine

Follow the Unreal documentation starting from Building Unreal Engine from Source. 

Please follow the steps from the Unreal website, as it contains the latest instructions for creating your own Unreal Engine build.

Make sure you are building Unreal Engine that you have downloaded from Varjo repository, instead of the one shown in Unreal tutorial as an example.

4. Open your project with Varjo UE

Go to the project folder and right-click on .uproject file. Select Switch Unreal Engine version… and select an engine folder compiled by you from the list. 

Open the project to the Visual Studio by double-clicking on the .sln file. 

Run the project: press Play in the Visual Studio. Unreal Editor with the project will open. 

5. Check Varjo plugin

Open Plugins from Edit > PluginsLook for Varjo plugin from Virtual Reality section. Check that it is enabled. 

6. Run your project

To run on the headset or in Varjo software emulator, select “Play”“VR Preview” 

7. Check the Performance and Visual Quality guidance

Tune the project with the guidance from Performance and Visual Quality page.